@@ -82,7 +82,7 @@ class SwiftObservationForm(BaseObservationForm):
8282 initial = SWIFT_URGENCY_CHOICES [2 ])
8383
8484 #
85- # Observation Type ('Specroscopy ', 'Light Curve', 'Position', 'Timing')
85+ # Observation Type ('Spectroscopy ', 'Light Curve', 'Position', 'Timing')
8686 #
8787 obs_type = forms .ChoiceField (
8888 required = True ,
@@ -134,7 +134,7 @@ class SwiftObservationForm(BaseObservationForm):
134134 required = False , label = 'Science Justification' ,
135135 widget = forms .Textarea (attrs = {
136136 'rows' : 8 ,
137- 'placeholder' : 'A pursuasive paragraph or two explaining why this object requires rapid observation.' })
137+ 'placeholder' : 'A persuasive paragraph or two explaining why this object requires rapid observation.' })
138138 )
139139
140140 #
@@ -151,7 +151,7 @@ class SwiftObservationForm(BaseObservationForm):
151151 #
152152 # Monitoring requests
153153 #
154- exp_time_per_visit = forms .FloatField (required = False , label = 'Exposure time per visit(s) [s]' )
154+ exp_time_per_visit = forms .FloatField (required = False , label = 'Exposure time per visit [s]' )
155155 num_of_visits = forms .IntegerField (
156156 required = False ,
157157 label = 'Number of visits [integer]' ,
@@ -349,8 +349,8 @@ def is_valid(self):
349349 # validate_observation needs to return a list of (field, error) tuples
350350 # if the list is empty, then the observation is valid
351351 #
352- # in order to call self.add_error(field, error), the field given must match the
353- # a field declared on the Form, Thus, the form field names must match the properties
352+ # in order to call self.add_error(field, error), the field given must match a
353+ # field declared on the Form, thus the form field names must match the properties
354354 # of the swifttoolkit.Swift_TOO object (unless we want to maintain a mapping between
355355 # the two). NB: field can be None.
356356 #
@@ -379,7 +379,7 @@ def observation_payload(self):
379379 plus the target information should be sufficient. See _configure_too() for how
380380 the observation_payload is used to configure the TOO attributes.
381381 """
382- # At the moment it's unclear why the obeervation_payload needs to differ from
382+ # At the moment it's unclear why the observation_payload needs to differ from
383383 # the form.cleaned_data...
384384 payload = self .cleaned_data .copy () # copy() just to be safe
385385
@@ -425,7 +425,7 @@ def get_facility_context_data(self, **kwargs):
425425 'username' : username ,
426426 }
427427
428- # get the resovled target info from the SwiftAPI
428+ # get the resolved target info from the SwiftAPI
429429 target = kwargs ['target' ]
430430 resolved_target = self .swift_api .resolve_target (target )
431431 if resolved_target :
@@ -447,7 +447,7 @@ def all_data_products(self, observation_record):
447447 data_products = super ().all_data_products (observation_record )
448448 logger .debug (f'all_data_products: { data_products } ' )
449449 # TODO: right now we just extend this to log a debug message. So remove this
450- # and just let the super class method handle it, when we're finished developing.
450+ # and just let the super class method handle it, when we're finished developing.
451451 return data_products
452452
453453 def data_products (self , observation_id , product_id = None ):
@@ -467,7 +467,7 @@ def get_observation_url(self, observation_id):
467467
468468 def get_observing_sites (self ):
469469 """Normally this would return an iterable dictionary of site LAT,LON,ELV values
470- to be used for target visibiliy window calculations. See, for example,
470+ to be used for target visibility window calculations. See, for example,
471471 tom_base/tom_observations/facilities/ocs.py::OCSSettings.get_sites()
472472
473473 Swift is entirely different. Just return and empty dict for now.
@@ -746,12 +746,12 @@ def submit_observation(self, observation_payload) -> [()]:
746746
747747 if self .swift_api .too .debug :
748748 # this was a debug submission and thus, no TOO was made and
749- # the too_id returned in the too.status is points to nothing.
749+ # the too_id returned in the too.status points to nothing.
750750 logger .warning (f'submit_observation - DEBUG submission - too_id: { too_id } is not real.' )
751751 else :
752752 logger .error (f'submit_observation - too.status.status: { self .swift_api .too .status .status } ' )
753753
754- # TODO: remove this -- it is only for debugging/development
754+ # TODO: remove this -- it is only for debugging/development
755755 # self.swift_api.too.status.too_id = 19529 # an actual NCG1566 TOO
756756
757757 return [too_id ]
0 commit comments