From 7a545c914e942ade69d5754be7045e77f8f45012 Mon Sep 17 00:00:00 2001
From: ahmedk <karim.ahmed@xfel.eu>
Date: Mon, 9 Oct 2023 12:13:09 +0200
Subject: [PATCH] Rename AGIPDCtrlDark with AgipdCtrlRuns

---
 notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb | 4 ++--
 src/cal_tools/agipdlib.py                               | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb b/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb
index 53d2bea7d..2ee182a23 100644
--- a/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb
+++ b/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb
@@ -109,7 +109,7 @@
     "\n",
     "import iCalibrationDB\n",
     "import matplotlib.pyplot as plt\n",
-    "from cal_tools.agipdlib import AgipdCtrl, AgipdCtrlDark\n",
+    "from cal_tools.agipdlib import AgipdCtrl, AgipdCtrlRuns\n",
     "from cal_tools.enums import BadPixels\n",
     "from cal_tools.plotting import (\n",
     "    create_constant_overview,\n",
@@ -273,7 +273,7 @@
     "        )\n",
     "    )\n",
     "\n",
-    "agipd_ctrl_dark = AgipdCtrlDark(run_ctrls)\n",
+    "agipd_ctrl_dark = AgipdCtrlRuns(run_ctrls)\n",
     "if mem_cells == 0:\n",
     "    mem_cells = agipd_ctrl_dark.get_memory_cells()\n",
     "\n",
diff --git a/src/cal_tools/agipdlib.py b/src/cal_tools/agipdlib.py
index 0c8a60bd6..404c40d04 100644
--- a/src/cal_tools/agipdlib.py
+++ b/src/cal_tools/agipdlib.py
@@ -307,7 +307,7 @@ class AgipdCtrl:
 
 
 @dataclass
-class AgipdCtrlDark:
+class AgipdCtrlRuns:
     run_ctrls: List[AgipdCtrl]
     runs: list = field(init=False)
 
-- 
GitLab