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)