Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
153957 committed Oct 8, 2023
1 parent d5faa2b commit 1d2321e
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion publicdb/default/static/styles/leaflet.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
.leaflet-marker-shadow {
display: block;
}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container svg: reset svg max-width declaration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg,
.leaflet-container .leaflet-marker-pane img,
Expand Down
10 changes: 5 additions & 5 deletions publicdb/histograms/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ def save_histograms(summary, slug, bins, values):
DailyHistogram.objects.update_or_create(summary=summary, type=type, defaults=histogram)
else:
MultiDailyHistogram.objects.update_or_create(summary=summary, type=type, defaults=histogram)
logger.debug('Saved succesfully')
logger.debug('Saved successfully')


def save_network_histograms(network_summary, slug, bins, values):
Expand All @@ -615,7 +615,7 @@ def save_network_histograms(network_summary, slug, bins, values):
type = HistogramType.objects.get(slug=slug)
histogram = {'bins': bins, 'values': values}
NetworkHistogram.objects.update_or_create(network_summary=network_summary, type=type, defaults=histogram)
logger.debug('Saved succesfully')
logger.debug('Saved successfully')


def save_dataset(summary, slug, x, y):
Expand All @@ -627,7 +627,7 @@ def save_dataset(summary, slug, x, y):
DailyDataset.objects.update_or_create(summary=summary, type=type, defaults=dataset)
else:
MultiDailyDataset.objects.update_or_create(summary=summary, type=type, defaults=dataset)
logger.debug('Saved succesfully')
logger.debug('Saved successfully')


def save_offsets(summary, offsets):
Expand All @@ -641,7 +641,7 @@ def save_offsets(summary, offsets):
logger.debug('Saving detector timing offsets for %s', summary)
off = {f'offset_{i}': round_in_base(o, 0.25) if not np.isnan(o) else None for i, o in enumerate(offsets, 1)}
DetectorTimingOffset.objects.update_or_create(summary=summary, defaults=off)
logger.debug('Saved succesfully')
logger.debug('Saved successfully')


def save_station_offset(ref_summary, summary, offset, error):
Expand All @@ -663,7 +663,7 @@ def save_station_offset(ref_summary, summary, offset, error):
field['error'] = None

StationTimingOffset.objects.update_or_create(summary=summary, ref_summary=ref_summary, defaults=field)
logger.debug('Saved succesfully')
logger.debug('Saved successfully')


def get_station_cluster_number(station):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h2>{% block header %}List of HiSPARC stations{% endblock %}</h2>
<div class="sectionTitle">Recent data</div>
<div class="keyvalue">
<span class='key statusBall up'></span>
<span class="value">Up: Recieved data yesterday {% if statuscount %}({{ statuscount.up }}){% endif %}</span><br>
<span class="value">Up: Received data yesterday {% if statuscount %}({{ statuscount.up }}){% endif %}</span><br>
</div>
<div class="keyvalue">
<span class='key statusBall problem'></span>
Expand Down
4 changes: 2 additions & 2 deletions publicdb/status_display/templates/status_display/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h3 class="term">Histogram</h3>
<div id="hisparcelectronics">
<h3 class="term">HiSPARC electronics</h3>
<p class="meaning">
This contols the PMT voltages and converts their signals
This controls the PMT voltages and converts their signals
into digital values. It constantly samples the PMT. When
signals cross the thresholds and the trigger conditions are met
it will store the signals as an event. After combining this
Expand Down Expand Up @@ -239,7 +239,7 @@ <h3 class="term">Pulseintegral</h3>
<p class="meaning">
The pulseintegral is determined by taking the integral of
the signal trace. The pulseintegral histogram shows how
often a value occured for a detector for all measured
often a value occurred for a detector for all measured
events. This graph shows how this value is determined.
</p>

Expand Down
6 changes: 3 additions & 3 deletions publicdb/status_display/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,12 @@ def get_object(self, queryset=None):
)

date = self.kwargs['date']
station_numner = self.kwargs['station_number']
station_number = self.kwargs['station_number']

try:
obj = queryset.get(
date=date,
station__number=station_numner,
station__number=station_number,
)
except queryset.model.DoesNotExist:
raise Http404
Expand Down Expand Up @@ -724,7 +724,7 @@ def get_specific_histogram_source(request, station_number, date, type):
},
content_type=MIME_TSV,
)
response['Content-Disposition'] = 'attachment; filename={type}-s{station_numer}-{date:%Y%-m%-d}.tsv'
response['Content-Disposition'] = 'attachment; filename={type}-s{station_number}-{date:%Y%-m%-d}.tsv'
return response


Expand Down
2 changes: 1 addition & 1 deletion publicdb/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
path('software-updates/', include('publicdb.updates.urls')),
path('raw_data/', include('publicdb.raw_data.urls', namespace='raw_data')),
path('data/', include('publicdb.raw_data.urls')),
path('config/datastore', create_datastore_config, name='datatore_config'),
path('config/datastore', create_datastore_config, name='datastore_config'),
path('keys/<slug:host>/', keys, name='keys'),
path('admin/', admin.site.urls),
]
6 changes: 3 additions & 3 deletions tests/test_api/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def test_subclusters(self):
data = self.get_json(reverse('api:stations', kwargs=kwargs))
self.assertEqual([{'number': 1, 'name': self.station.name}], data)

# Non existant subcluster number
# Non existent subcluster number
kwargs = {'subcluster_number': 1337}
self.assert_not_found(reverse('api:stations', kwargs=kwargs))

Expand All @@ -121,7 +121,7 @@ def test_clusters(self):
data = self.get_json(reverse('api:subclusters', kwargs=kwargs))
self.assertEqual([{'number': 0, 'name': self.station.cluster.name}], data)

# Non existant cluster number
# Non existent cluster number
kwargs = {'cluster_number': 1337}
self.assert_not_found(reverse('api:subclusters', kwargs=kwargs))

Expand All @@ -133,6 +133,6 @@ def test_countries(self):
data = self.get_json(reverse('api:clusters', kwargs=kwargs))
self.assertEqual([{'number': 0, 'name': self.station.cluster.name}], data)

# Non existant country number
# Non existent country number
kwargs = {'country_number': 1337}
self.assert_not_found(reverse('api:clusters', kwargs=kwargs))
2 changes: 1 addition & 1 deletion tests/test_histograms/test_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_perform_update_tasks(self):
validate_results(self, test_data, reference_path)
rmtree(settings.ESD_PATH)

# Procesed configuration from data into database
# Processed configuration from data into database
self.assertEqual(1, models.Configuration.objects.filter(summary=summary).count())

# Calculated detector offsets
Expand Down

0 comments on commit 1d2321e

Please sign in to comment.