diff --git a/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb b/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb index 3b2a993be778512d01d0fa6bf7fbc1d5a976e893..925d9b077ab2dc8309b28ab909089e8ffbbb151f 100644 --- a/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb +++ b/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb @@ -563,9 +563,6 @@ "metadata": {}, "outputs": [], "source": [ - "# Retrieve calibration constants to RAM\n", - "agipd_corr.allocate_constants(modules, (3, mem_cells_db, 512, 128))\n", - "\n", "step_timer.start()\n", "# Instantiate agipd_cal with the read operating conditions.\n", "agipd_cal = AGIPD_CalibrationData(\n", @@ -666,7 +663,9 @@ "metadata": {}, "outputs": [], "source": [ - "# load constants data\n", + "# Load calibration constants to RAM\n", + "agipd_corr.allocate_constants(modules, (3, mem_cells_db, 512, 128))\n", + "\n", "def load_constants(da, module):\n", " \"\"\"\n", " Initialize constants data from previously retrieved metadata.\n", diff --git a/src/cal_tools/calcat_interface.py b/src/cal_tools/calcat_interface.py index 89bfccc6391e9816dcb76aa75bd79b6f0f186883..db67afc900f82e1949dd2ef9ce37d76502a4eda4 100644 --- a/src/cal_tools/calcat_interface.py +++ b/src/cal_tools/calcat_interface.py @@ -1042,8 +1042,7 @@ class AGIPD_CalibrationData(SplitConditionCalibrationData): else: cond.pop("Gain mode", None) - - if int(cond.get("Integration time", None)) == 12: + if cond.get("Integration time", None) == 12: del cond["Integration time"] return cond