From 64c32ff74b59d81691cb03f0e6bd813a49b374c4 Mon Sep 17 00:00:00 2001
From: ahmedk <karim.ahmed@xfel.eu>
Date: Tue, 18 Jun 2024 18:50:48 +0200
Subject: [PATCH] fix: small fixes after testing part of injecting ccvs

---
 ...ngfrau_dark_analysis_all_gains_burst_mode_NBC.ipynb | 10 ++++++++++
 src/cal_tools/constants.py                             |  1 +
 2 files changed, 11 insertions(+)

diff --git a/notebooks/Jungfrau/Jungfrau_dark_analysis_all_gains_burst_mode_NBC.ipynb b/notebooks/Jungfrau/Jungfrau_dark_analysis_all_gains_burst_mode_NBC.ipynb
index 1b99b9770..3ed064298 100644
--- a/notebooks/Jungfrau/Jungfrau_dark_analysis_all_gains_burst_mode_NBC.ipynb
+++ b/notebooks/Jungfrau/Jungfrau_dark_analysis_all_gains_burst_mode_NBC.ipynb
@@ -81,6 +81,7 @@
     "import matplotlib\n",
     "import matplotlib.pyplot as plt\n",
     "import numpy as np\n",
+    "import pasha as psh\n",
     "import yaml\n",
     "from IPython.display import Markdown, display\n",
     "from extra_data import RunDirectory\n",
@@ -101,9 +102,18 @@
     "from cal_tools.enums import BadPixels, JungfrauGainMode\n",
     "from cal_tools.jungfrau import jungfraulib\n",
     "from cal_tools.restful_config import (\n",
+<<<<<<< HEAD
     "    extra_calibration_client,\n",
     ")\n",
     "from cal_tools.tools import calcat_creation_time, pdus_by_detector_id\n",
+=======
+    "    calibration_client,\n",
+    "    extra_calibration_client,\n",
+    ")\n",
+    "from cal_tools.tools import calcat_creation_time\n",
+    "\n",
+    "warnings.filterwarnings('ignore')\n",
+>>>>>>> a4ce232f (fix: small fixes after testing part of injecting ccvs)
     "\n",
     "matplotlib.use('agg')\n",
     "%matplotlib inline"
diff --git a/src/cal_tools/constants.py b/src/cal_tools/constants.py
index b8cb345a3..042d6bc79 100644
--- a/src/cal_tools/constants.py
+++ b/src/cal_tools/constants.py
@@ -263,6 +263,7 @@ def inject_ccv(
             'name': report_path.stem,
             'file_path': str(report_path)
         }
+    return inject_h
 
     const_dest = get_default_caldb_root() / const_rel_path / const_filename
     const_dest.parent.mkdir(parents=True, exist_ok=True)
-- 
GitLab