From 753a4e43686d96ec7fdb3e7c28b7c22195ea227f Mon Sep 17 00:00:00 2001 From: Karim Ahmed <karim.ahmed@xfel.eu> Date: Wed, 18 Sep 2019 09:04:43 +0200 Subject: [PATCH] temperature input is kelvin --- ...aracterize_Darks_NewDAQ_FastCCD_NBC_New_Common_Mode.ipynb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/notebooks/FastCCD/Characterize_Darks_NewDAQ_FastCCD_NBC_New_Common_Mode.ipynb b/notebooks/FastCCD/Characterize_Darks_NewDAQ_FastCCD_NBC_New_Common_Mode.ipynb index 909f1ea21..6a082da71 100644 --- a/notebooks/FastCCD/Characterize_Darks_NewDAQ_FastCCD_NBC_New_Common_Mode.ipynb +++ b/notebooks/FastCCD/Characterize_Darks_NewDAQ_FastCCD_NBC_New_Common_Mode.ipynb @@ -45,7 +45,7 @@ "bad_pixel_offset_sigma = 5. # Any pixel whose offset is beyond 5 standard deviations, is a bad pixel\n", "bad_pixel_noise_sigma = 5. # Any pixel whose noise is beyond 5 standard deviations, is a bad pixel\n", "sigmaNoise = 5. # Any pixel whose signal exceeds 'sigmaNoise'*noiseCM (common mode corrected noise) will be masked\n", - "fix_temperature = 0. # This is required when the temperature is fixed in calibration database\n", + "temperature_k = 0. # This is required. Set to 0 when temperature is not fixed in the calibration database.\n", "chunkSize = 100 # Number of images to read per chunk\n", "cpuCores = 40 # Specifies the number of running cpu cores\n", "commonModeAxis = 1 # Axis along which common mode will be calculated (0: along rows, 1: along columns)\n", @@ -220,8 +220,7 @@ "print(\"Detector gain is set to x{}\".format(det_gain), \"({} gain)\".format(gain_setting))\n", "print(\"Detector integration time is set to {}\".format(integration_time), 'ms')\n", "\n", - "temperature_k = fix_temperature + 273.15\n", - "if fix_temperature != 0.:\n", + "if temperature_k != 0.:\n", " print(\"Using a fixed temperature of {}\".format(temperature_k), \"K\")\n", "else:\n", " # This is needed while sending the \n", -- GitLab