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

Task #10558: Add comments about why station and cobalt resources do not (yet)...

Task #10558: Add comments about why station and cobalt resources do not (yet) have to be propagated from RA->OTDB
parent aaf13e5f
No related branches found
No related tags found
No related merge requests found
......@@ -222,12 +222,18 @@ class RAtoOTDBTranslator():
parset[PREFIX+'startTime'] = ra_info['starttime'].strftime('%Y-%m-%d %H:%M:%S')
parset[PREFIX+'stopTime'] = ra_info['endtime'].strftime('%Y-%m-%d %H:%M:%S')
# Station resources are dealt with as follows:
# * Station list: This is part of the specification, so already in OTDB. The RA only checks for conflicts.
# * Data slots: Stations & Cobalt derive a default data-slot mapping, so no need to specify one until Cobalt
# can read data from the same antenna field for multiple observations (=the use case for data
# slots).
# Cobalt resources are dealt with as follows:
# * Cobalt.blockSize is part of the specification.
# * Cobalt resources are not modelled and allocated, so the defaults (cbt001-8) will be used.
if 'storage' in ra_info:
logging.info("Adding storage claims to parset\n" + pprint.pformat(ra_info['storage']))
parset.update(self.ProcessStorageInfo(otdb_id, ra_info['storage'], project_name))
if 'stations' in ra_info:
logging.info("Adding stations to parset: " + str(ra_info["stations"]))
parset[PREFIX+'VirtualInstrument.stationList'] = ra_info["stations"]
if ra_info['type'] == 'observation':
logging.info("Adding inspection plot commands to parset")
parset[PREFIX+'ObservationControl.OnlineControl.inspectionHost'] = 'head01.cep4.control.lofar'
......
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