From fc302656bf03653e0046b85bcfeb435c6b7d5309 Mon Sep 17 00:00:00 2001
From: ahmedk <karim.ahmed@xfel.eu>
Date: Wed, 20 Oct 2021 12:49:26 +0200
Subject: [PATCH] set absolute_gain to false if relative gain was not retrieved

---
 notebooks/ePix100/Correction_ePix100_NBC.ipynb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/notebooks/ePix100/Correction_ePix100_NBC.ipynb b/notebooks/ePix100/Correction_ePix100_NBC.ipynb
index 83ffb1e59..c241f8e27 100644
--- a/notebooks/ePix100/Correction_ePix100_NBC.ipynb
+++ b/notebooks/ePix100/Correction_ePix100_NBC.ipynb
@@ -111,7 +111,7 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "if absolute_gain :\n",
+    "if absolute_gain:\n",
     "    relative_gain = True"
    ]
   },
@@ -291,10 +291,11 @@
     "\n",
     "if relative_gain and const_data[\"RelativeGain\"] is None:\n",
     "    print(\n",
-    "        \"WARNING: RelativeGain map is requested, but not found./n\"\n",
+    "        \"WARNING: RelativeGain map is requested, but not found.\\n\"\n",
     "        \"No gain correction will be applied\"\n",
     "    )\n",
     "    relative_gain = False\n",
+    "    absolute_gain = False\n",
     "    plot_unit = 'ADU'"
    ]
   },
-- 
GitLab