Skip to content
Snippets Groups Projects
Commit 4d81c30f authored by David McKenna's avatar David McKenna
Browse files

FIX: Pass on invalid station configurations instead of exiting.

parent 86a77e80
Branches
Tags
1 merge request!38FIX: Pass on invalid station configurations instead of exiting.
...@@ -106,6 +106,9 @@ def yield_l2obs_from_params( ...@@ -106,6 +106,9 @@ def yield_l2obs_from_params(
continue continue
# filtered_metadata, filtered_data = metadata, data # filtered_metadata, filtered_data = metadata, data
try:
l2obs = parse_json.build_lofar2_observation(filtered_metadata, filtered_data) l2obs = parse_json.build_lofar2_observation(filtered_metadata, filtered_data)
yield (station, field, datatype, obs_id), l2obs yield (station, field, datatype, obs_id), l2obs
except Exception as e:
print(f"Skipping {obs_id=} for {station}{field} due to {e=}")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment