From 0ba851ae71e37a4d08c3458e42bc065f42ef99e4 Mon Sep 17 00:00:00 2001 From: Philipp Schmidt <philipp.schmidt@xfel.eu> Date: Sun, 23 Oct 2022 15:13:56 +0200 Subject: [PATCH] Remove photon-energy parameter from AGIPD correct and hardcode to 9.2 --- notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb | 5 ++--- notebooks/AGIPD/AGIPD_Retrieve_Constants_Precorrection.ipynb | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb b/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb index f8e99656a..5000436e3 100644 --- a/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb +++ b/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb @@ -46,7 +46,6 @@ "acq_rate = 0. # the detector acquisition rate, use 0 to try to auto-determine\n", "gain_setting = -1 # the gain setting, use -1 to use value stored in slow data.\n", "gain_mode = -1 # gain mode (0: adaptive, 1-3 fixed high/med/low, -1: read from CONTROL data)\n", - "photon_energy = 9.2 # photon energy in keV\n", "overwrite = True # set to True if existing data should be overwritten\n", "max_pulses = [0, 352, 1] # range list [st, end, step] of memory cell indices to be processed within a train. 3 allowed maximum list input elements.\n", "mem_cells_db = 0 # set to a value different than 0 to use this value for DB queries\n", @@ -429,7 +428,7 @@ "print(f\"• Gain setting: {gain_setting}\")\n", "print(f\"• Gain mode: {gain_mode.name}\")\n", "print(f\"• Integration time: {integration_time}\")\n", - "print(f\"• Photon Energy: {photon_energy}\")" + "print(f\"• Photon Energy: 9.2\")" ] }, { @@ -607,7 +606,7 @@ " creation_time=creation_time,\n", " memory_cells=mem_cells_db,\n", " bias_voltage=bias_voltage,\n", - " photon_energy=photon_energy,\n", + " photon_energy=9.2,\n", " gain_setting=gain_setting,\n", " acquisition_rate=acq_rate,\n", " integration_time=integration_time,\n", diff --git a/notebooks/AGIPD/AGIPD_Retrieve_Constants_Precorrection.ipynb b/notebooks/AGIPD/AGIPD_Retrieve_Constants_Precorrection.ipynb index 63e5187fb..800f64282 100644 --- a/notebooks/AGIPD/AGIPD_Retrieve_Constants_Precorrection.ipynb +++ b/notebooks/AGIPD/AGIPD_Retrieve_Constants_Precorrection.ipynb @@ -44,7 +44,6 @@ "acq_rate = 0. # the detector acquisition rate, use 0 to try to auto-determine\n", "gain_setting = -1 # the gain setting, use -1 to use value stored in slow data.\n", "gain_mode = -1 # gain mode (0: adaptive, 1-3 fixed high/med/low, -1: read from CONTROL data)\n", - "photon_energy = 9.2 # photon energy in keV\n", "integration_time = -1 # integration time, negative values for auto-detection.\n", "\n", "# Correction Booleans\n", @@ -266,7 +265,7 @@ " bias_voltage,\n", " gain_setting,\n", " local_acq_rate,\n", - " photon_energy,\n", + " photon_energy=9.2,\n", " gain_mode=gain_mode,\n", " beam_energy=None,\n", " only_dark=only_dark,\n", @@ -417,7 +416,7 @@ " print(f\"• Gain mode: {gain_mode.name}\")\n", " print(f\"• Gain setting: {gain_setting}\")\n", " print(f\"• Integration time: {integration_time}\")\n", - " print(f\"• Photon Energy: {photon_energy}\")\n", + " print(f\"• Photon Energy: 9.2\")\n", " print(\"Constant metadata is saved under \\\"retrieved-constants\\\" in calibration_metadata.yml\\n\")" ] }, -- GitLab