From d840402430af37f8528fd5b51db394be00b72cc9 Mon Sep 17 00:00:00 2001 From: ahmedk <karim.ahmed@xfel.eu> Date: Tue, 2 Apr 2024 07:12:14 +0200 Subject: [PATCH] Remove the default specification for caldb_root in AGIPD correction notebook --- notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb | 2 +- src/cal_tools/calcat_interface.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb b/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb index 8c3b5d717..c5d0d966d 100644 --- a/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb +++ b/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb @@ -41,7 +41,7 @@ "cal_db_interface = \"tcp://max-exfl-cal001:8015#8045\" # the database interface to use\n", "cal_db_timeout = 30000 # in milliseconds\n", "creation_date_offset = \"00:00:00\" # add an offset to creation date, e.g. to get different constants\n", - "cal_db_root = '/gpfs/exfel/d/cal/caldb_store' # The calibration database root path to access constant files. For example accessing constants from the test database.\n", + "cal_db_root = \"\" # The calibration database root path to access constant files. e.g. accessing constants from the test database /gpfs/exfel/d/cal/caldb_store.\n", "\n", "mem_cells = -1 # Number of memory cells used, set to 0 to automatically infer\n", "bias_voltage = -1 # bias voltage, set to 0 to use stored value in slow data.\n", diff --git a/src/cal_tools/calcat_interface.py b/src/cal_tools/calcat_interface.py index 164ce0ee0..c1f6c63be 100644 --- a/src/cal_tools/calcat_interface.py +++ b/src/cal_tools/calcat_interface.py @@ -443,7 +443,7 @@ class CalibrationData: self.event_at = event_at self.pdu_snapshot_at = event_at self.module_naming = module_naming - if caldb_root is None: + if not caldb_root: self.caldb_root = self._get_default_caldb_root() else: self.caldb_root = Path(caldb_root) -- GitLab