From ebc4f1ebbfa57bd74ce4a55bdd141f9d7acbe3cc Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Wed, 15 Oct 2025 13:20:53 +0200 Subject: [PATCH] moved print to output into output --- dap/accumulator.py | 2 +- dap/utils/filehandler.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dap/accumulator.py b/dap/accumulator.py index e70b9e3..f97dd69 100644 --- a/dap/accumulator.py +++ b/dap/accumulator.py @@ -48,7 +48,7 @@ def accumulate(accumulator_host, accumulator_port): res_laser_on = results.get("laser_on", False) res_roi_intensities = results.get("roi_intensities", []) - print(pulse_id, res_is_good_frame, res_is_hit_frame, res_number_of_spots, res_laser_on, *res_roi_intensities, file=output) + output.write(pulse_id, res_is_good_frame, res_is_hit_frame, res_number_of_spots, res_laser_on, *res_roi_intensities) diff --git a/dap/utils/filehandler.py b/dap/utils/filehandler.py index 2b15aac..1d487f3 100644 --- a/dap/utils/filehandler.py +++ b/dap/utils/filehandler.py @@ -26,9 +26,9 @@ class FileHandler: if self.file: self.file.flush() - def write(self, *args, **kwargs): + def write(self, *args): if self.file: - self.file.write(*args, **kwargs) + print(*args, file=self.file)