Skip to content
Snippets Groups Projects
Commit b141b622 authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-1444: Naming

parent 0df8d40f
No related branches found
No related tags found
1 merge request!1131L2SS-1444: Also send the observation parset to COBALT when starting an observation
...@@ -149,9 +149,9 @@ class L2TMSSObservationControlMessageHandler(TMSSEventMessageHandler): ...@@ -149,9 +149,9 @@ class L2TMSSObservationControlMessageHandler(TMSSEventMessageHandler):
# write parset to disk so we can scp it # write parset to disk so we can scp it
parset_filename = COBALT_PARSET_FILENAME_PATTERN.format(subtask_id=subtask_id) parset_filename = COBALT_PARSET_FILENAME_PATTERN.format(subtask_id=subtask_id)
with open(f"{tmpdir}/{PARSET_FILENAME}", "w") as parset: with open(f"{tmpdir}/{PARSET_FILENAME}", "w") as parset_file:
l2parset = self.tmss_client.get_subtask_parset(subtask_id, retry_count=5) parset = self.tmss_client.get_subtask_parset(subtask_id, retry_count=5)
parset.write(l2parset) parset_file.write(parset)
# copy it to COBALT # copy it to COBALT
_system(f"scp {tmpdir}/{PARSET_FILENAME} {COBALT_HEADNODE}:{COBALT_PARSET_DIR}/{PARSET_FILENAME}") _system(f"scp {tmpdir}/{PARSET_FILENAME} {COBALT_HEADNODE}:{COBALT_PARSET_DIR}/{PARSET_FILENAME}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment