diff --git a/notebooks/DynamicFF/Characterize_DynamicFF_NBC.ipynb b/notebooks/DynamicFF/Characterize_DynamicFF_NBC.ipynb index 40e958da1bebb0c45566fc6fe31843955ae779c1..9ceb9f6b6c26f3278093bc85207ebc91f066e4e3 100644 --- a/notebooks/DynamicFF/Characterize_DynamicFF_NBC.ipynb +++ b/notebooks/DynamicFF/Characterize_DynamicFF_NBC.ipynb @@ -143,8 +143,7 @@ " include=f\"RAW-R{dark_run:04d}-{file_da}-S*.h5\")\n", "\n", " if source_name not in dark_dc.all_sources:\n", - " print(f\"Source {source_name} for module {da} is missed\")\n", - " continue\n", + " raise ValueError(f\"Could not find source {source_name} for module {da} in dark data\")\n", "\n", " dark_dc = dark_dc.select([(source_name, image_key)])\n", " conditions = detector.conditions(dark_dc, meta[\"module\"])\n", @@ -209,8 +208,7 @@ " include=f\"RAW-R{flat_run:04d}-{file_da}-S*.h5\")\n", "\n", " if source_name not in flat_dc.all_sources:\n", - " print(f\"Source {source_name} for module {da} is missed\")\n", - " continue\n", + " raise ValueError(f\"Could not find source {source_name} for module {da} in flatfield data\")\n", "\n", " flat_dc = flat_dc.select([(source_name, image_key)])\n", " conditions = detector.conditions(flat_dc, meta[\"module\"])\n",