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

TMSS-745: improved variable name

parent 92aa1e93
No related branches found
No related tags found
3 merge requests!634WIP: COBALT commissioning delta,!504TMSS-745: Responsive Telescope,!481Draft: SW-971 SW-973 SW-975: Various fixes to build LOFAR correctly.
......@@ -27,12 +27,12 @@ def create_scheduling_unit_draft_from_observing_strategy_template(strategy_templ
# apply overrides on template requirements_doc if given
if requirements_doc_overrides:
# only use allowed overrides
parameter_pointers = sum([p['refs'] for p in strategy_template.template['parameters']], [])
allowed_overrides = subdict_of_pointer_items(requirements_doc_overrides, parameter_pointers)
allowed_parameter_pointers = sum([p['refs'] for p in strategy_template.template['parameters']], [])
allowed_overrides = subdict_of_pointer_items(requirements_doc_overrides, allowed_parameter_pointers)
if allowed_overrides != requirements_doc_overrides:
raise InvalidSpecificationException("Specified faulty overrides. These are the allowed overridable parameters: \n%s\nSubmitted overrides:%s" % (
'\n'.join([str(p) for p in parameter_pointers]), requirements_doc_overrides))
'\n'.join([str(p) for p in allowed_parameter_pointers]), requirements_doc_overrides))
# do the actual override of the remaining allowed items
requirements_doc = dict_with_overrides(requirements_doc, allowed_overrides)
......
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