Skip to content
Snippets Groups Projects

New calcat interface

Merged Karim Ahmed requested to merge feat/new_calcat_interface into master
2 files
+ 45
31
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 4
3
@@ -1361,6 +1361,7 @@ class AgipdCorrections:
def initialize_from_db(
self, karabo_id: str,
karabo_da: str,
module_idx: int,
creation_time: datetime,
memory_cells: int,
bias_voltage: int,
@@ -1368,7 +1369,7 @@ class AgipdCorrections:
gain_mode: int,
acquisition_rate: float,
integration_time: int,
module_idx: int,
photon_energy: float = 9.2,
):
""" Initialize calibration constants from the calibration database
@@ -1417,7 +1418,7 @@ class AgipdCorrections:
memory_cells=memory_cells,
acquisition_rate=acquisition_rate,
integration_time=integration_time,
source_energy=9.2,
source_energy=photon_energy,
gain_mode=gain_mode,
gain_setting=gain_setting,
event_at=creation_time,
@@ -1435,7 +1436,7 @@ class AgipdCorrections:
]
gain_constants = []
if self.pc_bools:
if any(self.pc_bools):
gain_constants += ["SlopesPC", "BadPixelsPC"]
if self.corr_bools.get("xray_corr"):
gain_constants += ["SlopesFF", "BadPixelsFF"]
Loading