diff --git a/src/calng/AgipdCorrection.py b/src/calng/AgipdCorrection.py index 36edc80d124a71e09aeaab51454b656bc42888bc..c0b1d9a4faa406be2fa126c9f7a8d568dbf031ec 100644 --- a/src/calng/AgipdCorrection.py +++ b/src/calng/AgipdCorrection.py @@ -659,6 +659,12 @@ class AgipdCorrection(BaseCorrection): self.kernel_runner.load_data(image_data) except ValueError as e: self.log_status_warn(f"Failed to load data: {e}") + self.log_status_warn( + f"For debugging - cell table: {type(cell_table)}, {cell_table}" + ) + self.log_status_warn( + f"For debugging - data: {type(image_data)}, {image_data.shape}" + ) return except Exception as e: self.log_status_warn(f"Unknown exception when loading data to GPU: {e}") diff --git a/src/calng/base_correction.py b/src/calng/base_correction.py index 103d823ad8a228edbd0b5ef7640f01d55e498d28..a631076b3f680cfd0d60782ba31e188ab4004a3f 100644 --- a/src/calng/base_correction.py +++ b/src/calng/base_correction.py @@ -891,6 +891,7 @@ class BaseCorrection(PythonDevice): ) # TODO: gracefully handle change in constantParameters.memoryCells + # TODO: offload to thread to avoid reconfigure of framefilter timing out with self.calcat_friend.cached_constants_lock: for ( constant, @@ -1092,11 +1093,7 @@ def add_correction_step_schema(schema, managed_keys, field_flag_mapping): def _parse_frame_filter(config): - print("Get type") - _t = config["frameFilter.type"] - print(_t) - filter_type = FramefilterSpecType(_t) - print("Get spec") + filter_type = FramefilterSpecType(config["frameFilter.type"]) filter_string = config["frameFilter.spec"] if filter_type is FramefilterSpecType.NONE or filter_string.strip() == "":