From 62631a5dcd4dcde554a283e6ef5240c8c0684d1d Mon Sep 17 00:00:00 2001 From: Thomas Kluyver <thomas.kluyver@xfel.eu> Date: Fri, 25 Oct 2024 12:54:14 +0100 Subject: [PATCH] Make some quantity parameters for conditions floats instead of ints --- notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb | 2 +- notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb | 4 ++-- notebooks/LPDMini/LPD_Mini_Correct.ipynb | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb b/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb index 371720faf..55a2a2f78 100644 --- a/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb +++ b/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb @@ -43,7 +43,7 @@ "sort_runs = True # Sort the selected dark runs. This flag is added for old data (e.g. 900174 r0011).\n", "\n", "mem_cells = 0 # number of memory cells used, set to 0 to automatically infer\n", - "bias_voltage = 0 # bias voltage, set to 0 to use stored value in slow data.\n", + "bias_voltage = 0. # bias voltage, set to 0 to use stored value in slow data.\n", "gain_setting = -1 # the gain setting, use -1 to use value stored in slow data.\n", "gain_mode = -1 # gain mode, use -1 to use value stored in slow data.\n", "integration_time = -1 # integration time, negative values for auto-detection.\n", diff --git a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb index 37f6eab20..d2b572746 100644 --- a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb +++ b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb @@ -50,12 +50,12 @@ "replace_wrong_gain_value = 0 # Force gain value into the chosen gain [0, 1, or 2] for pixels specified in `wrong_gain_pixels`. This has no effect if wrong_gain_pixels = [-1]\n", "\n", "# Parameters for retrieving calibration constants\n", - "integration_time = -1 # integration time in us. set to -1 to overwrite by value in file.\n", + "integration_time = -1. # integration time in us. set to -1 to overwrite by value in file.\n", "exposure_timeout = -1 # Exposure timeout. set to -1 to overwrite by value in file.\n", "gain_setting = -1 # 0 for dynamic gain, 1 for dynamic HG0. set to -1 to overwrite by value in file.\n", "gain_mode = -1 # 0 for runs with dynamic gain setting, 1 for fixed gain. Set to -1 to overwrite by value in file.\n", "mem_cells = -1 # Set mem_cells to -1 to automatically use the value stored in RAW data.\n", - "bias_voltage = -1 # Bias Voltage. Set to -1 to overwrite by value in file.\n", + "bias_voltage = -1. # Bias Voltage. Set to -1 to overwrite by value in file.\n", "\n", "# Parameters for plotting\n", "skip_plots = False # exit after writing corrected files\n", diff --git a/notebooks/LPDMini/LPD_Mini_Correct.ipynb b/notebooks/LPDMini/LPD_Mini_Correct.ipynb index 0898a4fdc..7e2b27d78 100644 --- a/notebooks/LPDMini/LPD_Mini_Correct.ipynb +++ b/notebooks/LPDMini/LPD_Mini_Correct.ipynb @@ -41,8 +41,8 @@ "cal_db_root = '/gpfs/exfel/d/cal/caldb_store'\n", "\n", "# Operating conditions\n", - "bias_voltage_0 = -1 # bias voltage for minis 1, 3, 5, 7; Setting -1 will read the value from files\n", - "bias_voltage_1 = -1 # bias voltage for minis 2, 4, 6, 8; Setting -1 will read the value from files\n", + "bias_voltage_0 = -1. # bias voltage for minis 1, 3, 5, 7; Setting -1 will read the value from files\n", + "bias_voltage_1 = -1. # bias voltage for minis 2, 4, 6, 8; Setting -1 will read the value from files\n", "capacitor = '5pF' # Capacitor setting: 5pF or 50pF\n", "photon_energy = 9.3 # Photon energy in keV.\n", "use_cell_order = 'auto' # Whether to use memory cell order as a detector condition (auto = used only when memory cells wrap around)\n", -- GitLab