Skip to content

Commit

Permalink
Refactor OCS facility and forms from LCO ones
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon committed Feb 4, 2023
1 parent a555272 commit 1abcfeb
Show file tree
Hide file tree
Showing 12 changed files with 2,055 additions and 2,056 deletions.
172 changes: 0 additions & 172 deletions tom_alerts/tests/brokers/test_mars.py

This file was deleted.

2 changes: 1 addition & 1 deletion tom_observations/cadences/resume_cadence_after_failure.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def run(self):

# Submission of the new observation to the facility
obs_type = last_obs.parameters.get('observation_type')
form = facility.get_form(obs_type)(observation_payload)
form = facility.get_form(obs_type)(data=observation_payload)
if form.is_valid():
observation_ids = facility.submit_observation(form.observation_payload())
else:
Expand Down
2 changes: 1 addition & 1 deletion tom_observations/cadences/retry_failed_observations.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def run(self):
observation_payload, start_keyword=start_keyword, end_keyword=end_keyword
)
obs_type = obs.parameters.get('observation_type', None)
form = facility.get_form(obs_type)(observation_payload)
form = facility.get_form(obs_type)(data=observation_payload)
form.is_valid()
observation_ids = facility.submit_observation(form.observation_payload())

Expand Down
Loading

0 comments on commit 1abcfeb

Please sign in to comment.