From 5557a1560e6a5bc18e4819b2d49d9b31c3abefc4 Mon Sep 17 00:00:00 2001
From: Karim Ahmed <karim.ahmed@xfel.eu>
Date: Wed, 18 Sep 2019 11:24:01 +0200
Subject: [PATCH] keep fix-temperature

---
 ...ze_Darks_NewDAQ_FastCCD_NBC_New_Common_Mode.ipynb | 12 ++++++------
 1 file changed, 6 insertions(+), 6 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 8cde562b6..a6ecc6cbc 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",
-    "temperature_k = 0. # Operation temperature in Kelvins. If set to 0, mean value of the data file's temperature is used.\n",
+    "fix_temperature = 0. # Fixed operation temperature in Kelvins. If set to 0, mean value of the data file's temperature is used.\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,14 +220,14 @@
     "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",
-    "if temperature_k != 0.:\n",
-    "    print(\"Using a fixed temperature of {} K\".format(temperature_k))\n",
+    "if fix_temperature != 0.:\n",
+    "    print(\"Using a fixed temperature of {} K\".format(fix_temperature))\n",
     "else:\n",
     "    # This is needed while sending the \n",
     "    # calibration constant to the DB later\n",
-    "    temperature_k = temperature + 273.15\n",
+    "    fix_temperature = temperature + 273.15\n",
     "    print(\"Temperature is not fixed.\")\n",
-    "    print(\"Mean temperature was {:0.2f} °C / {:0.2f} K\".format(temperature, temperature_k))\n",
+    "    print(\"Mean temperature was {:0.2f} °C / {:0.2f} K\".format(temperature, fix_temperature))\n",
     "\n",
     "print(\"Output: {}\".format(out_folder))"
    ]
@@ -929,7 +929,7 @@
     "    condition = Conditions.Dark.CCD(bias_voltage=bias_voltage,\n",
     "                                integration_time=integration_time,\n",
     "                                gain_setting=det_gain,\n",
-    "                                temperature=temperature_k,\n",
+    "                                temperature=fix_temperature,\n",
     "                                pixels_x=1934,\n",
     "                                pixels_y=960)\n",
     "    \n",
-- 
GitLab