Skip to content
Snippets Groups Projects
Commit f9a76a88 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-183: minor fixes

parent 957567dc
No related branches found
No related tags found
No related merge requests found
......@@ -29,10 +29,11 @@ def _convert_to_parset_for_observationcontrol_schema(subtask: models.Subtask) ->
parset = dict() # parameterset has no proper assignment operators, so take detour via dict...
parset["Observation.ObsID"] = subtask.pk
parset["Observation.momID"] = -1 # Needed by MACScheduler
parset["Observation.otdbID"] = -1 # Needed by MACScheduler; should/can this be the same as subtask.pk?
parset["Observation.momID"] = 0 # Needed by MACScheduler
parset["Observation.otdbID"] = 0 # Needed by MACScheduler; should/can this be the same as subtask.pk?
parset["Observation.processType"] = subtask.specifications_template.type.value.capitalize()
parset["Observation.processSubtype"] = "Beam Observation" # TODO: where to derive the processSubtype from?
parset["Observation.Campaign.name"] = "TMSS_test" #toDo: replace by project name
parset["Observation.startTime"] = formatDatetime(subtask.start_time)
parset["Observation.stopTime"] = formatDatetime(subtask.stop_time)
parset["Observation.VirtualInstrument.minimalNrStations"] = 1 # maybe not mandatory?
......
......@@ -189,7 +189,7 @@ def _populate_example_data():
subtask_template = models.SubtaskTemplate.objects.get(name='observationcontrol schema')
specifications_doc = {
"stations": {"station_list": ["CS021"],
"stations": {"station_list": ["RS106"],
"antenna_set": "HBA_DUAL_INNER",
"filter": "HBA_110_190",
"analog_pointing": {"direction_type": "J2000",
......@@ -212,7 +212,7 @@ def _populate_example_data():
subtask_output = models.SubtaskOutput.objects.create(**SubtaskOutput_test_data(subtask=subtask))
for sb_nr in specifications_doc['stations']['digital_pointings'][0]['subbands']:
models.Dataproduct.objects.create(**Dataproduct_test_data(producer=subtask_output,
directory="CEP4:/data/test-projects/L%d/uv/" % (subtask.id,),
directory="CEP4:/data/test-projects/TMSS_test/L%d/uv/" % (subtask.id,),
filename="L%d_SB%03d_uv.MS"%(subtask.id, sb_nr)))
except ImportError:
pass
......
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