diff --git a/notebooks/ePix100/Correction_ePix100_NBC.ipynb b/notebooks/ePix100/Correction_ePix100_NBC.ipynb index 052067fe3fbb6712d98ed7b0aa173441568de856..33089c104328a0d62f90021f329343ce285c3e69 100644 --- a/notebooks/ePix100/Correction_ePix100_NBC.ipynb +++ b/notebooks/ePix100/Correction_ePix100_NBC.ipynb @@ -296,8 +296,9 @@ "missing_dark_constants = set(\n", " c for c in [\"OffsetEPix100\", \"NoiseEPix100\"] if c not in const_data.keys())\n", "if missing_dark_constants:\n", - " raise KeyError(\n", - " f\"Dark constants {missing_dark_constants} are not available for correction.\")\n", + " raise ValueError(\n", + " f\"Dark constants {missing_dark_constants} are not available to correct {karabo_da}. \"\n", + " \"No correction is performed!\")\n", "\n", "if relative_gain and \"RelativeGainEPix100\" not in const_data.keys():\n", " warning(\"RelativeGainEPix100 is not found in the calibration database.\")\n", diff --git a/notebooks/ePix100/ePix100_retrieve_constants_precorrection.ipynb b/notebooks/ePix100/ePix100_retrieve_constants_precorrection.ipynb index c955f1361df90ee809188539d3f6064a88a9f75b..258149ad8fea06c452b7dbeabfcd0a1a2ebc2529 100644 --- a/notebooks/ePix100/ePix100_retrieve_constants_precorrection.ipynb +++ b/notebooks/ePix100/ePix100_retrieve_constants_precorrection.ipynb @@ -164,8 +164,8 @@ "missing_dark_constants = set(\n", " c for c in [\"OffsetEPix100\", \"NoiseEPix100\"] if c not in epix_metadata[karabo_da].keys())\n", "if missing_dark_constants:\n", - " raise KeyError(\n", - " f\"Dark constants {missing_dark_constants} are not available for correction.\")\n", + " raise ValueError(\n", + " f\"Dark constants {missing_dark_constants} are not available to correct {karabo_da}. \")\n", "if relative_gain and \"RelativeGainEPix100\" not in list(epix_metadata.values())[0].keys():\n", " warning(\"RelativeGainEPix100 is not found in CALCAT.\")\n", "\n",