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

L2SS-1511: only address the lofar2 stations via lobster

parent f1b94a77
No related branches found
No related tags found
1 merge request!1328L2SS-1511: allow mixing of lofar 1 and 2 stations.
...@@ -20,6 +20,7 @@ import copy ...@@ -20,6 +20,7 @@ import copy
from lofar.sas.tmss.tmss.tmssapp import models from lofar.sas.tmss.tmss.tmssapp import models
from lofar.common.json_utils import validate_json_against_schema from lofar.common.json_utils import validate_json_against_schema
from lofar.sas.tmss.tmss.tmssapp.conversions import get_lofar2_stations
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
...@@ -71,8 +72,9 @@ def convert_to_l2stationspecs_dict(subtask: models.Subtask) -> dict: ...@@ -71,8 +72,9 @@ def convert_to_l2stationspecs_dict(subtask: models.Subtask) -> dict:
# get the template with the json schema to check validity of the l2stationspecs # get the template with the json schema to check validity of the l2stationspecs
l2station_template = models.CommonSchemaTemplate.get_latest("lofar2station") l2station_template = models.CommonSchemaTemplate.get_latest("lofar2station")
specified_lofar2_stations = set(subtask.specifications_doc["stations"]["station_list"]).intersection(set(get_lofar2_stations()))
for station in subtask.specifications_doc["stations"]["station_list"]: # todo: I guess we would simply filter for lofar2-stations here (L2SS-1189)? for station in specified_lofar2_stations:
antenna_set = subtask.specifications_doc["stations"]["antenna_set"] antenna_set = subtask.specifications_doc["stations"]["antenna_set"]
station_type = station_to_type(station) station_type = station_to_type(station)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment