From c75e7c4ba1e1e4a68749afd8f8f4617065447443 Mon Sep 17 00:00:00 2001
From: ahmedk <karim.ahmed@xfel.eu>
Date: Fri, 29 Sep 2023 16:32:49 +0200
Subject: [PATCH] fix function name was changed

---
 .../Jungfrau_dark_analysis_all_gains_burst_mode_NBC.ipynb   | 2 +-
 tests/test_jungfraulib.py                                   | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

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 4dfd80ae3..c636a9ce7 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
@@ -167,7 +167,7 @@
     "\n",
     "ctrl_src = ctrl_source_template.format(karabo_id_control)\n",
     "\n",
-    "jungfraulib.validate_dark_runs(\n",
+    "jungfraulib.validate_dark_runs_order(\n",
     "    raw_folder=in_folder,\n",
     "    runs=run_nums,\n",
     "    ctrl_src=ctrl_src,\n",
diff --git a/tests/test_jungfraulib.py b/tests/test_jungfraulib.py
index bff2e7643..fe781afcb 100644
--- a/tests/test_jungfraulib.py
+++ b/tests/test_jungfraulib.py
@@ -1,7 +1,7 @@
 import pytest
 from extra_data import RunDirectory
 
-from cal_tools.jungfraulib import JungfrauCtrl, validate_dark_runs
+from cal_tools.jungfraulib import JungfrauCtrl, validate_dark_runs_order
 
 # TODO: replace with mocked RAW data as in tests/test_agipdlib.py
 JF = JungfrauCtrl(
@@ -57,9 +57,9 @@ def test_get_gain_mode(mode, result):
 )
 # TODO: missing fixed gain dark runs for JUNGFRAU from test proposal.
 # TODO: missing fixed and adaptive runs after the JF control updated.
-def test_validate_dark_runs(original_runs, sorted_runs):
+def test_validate_dark_runs_order(original_runs, sorted_runs):
     raw_folder = "/gpfs/exfel/exp/CALLAB/202130/p900203/raw"
-    validated_runs = validate_dark_runs(
+    validated_runs = validate_dark_runs_order(
         raw_folder=raw_folder,
         runs=original_runs,
         ctrl_src="FXE_XAD_JF1M/DET/CONTROL")
-- 
GitLab