nicer fix print to FileHandler
This commit is contained in:
@@ -51,7 +51,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.file)
|
||||
print(pulse_id, res_is_good_frame, res_is_hit_frame, res_number_of_spots, res_laser_on, *res_roi_intensities, file=output)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -23,5 +23,9 @@ class FileHandler:
|
||||
if self.file:
|
||||
self.file.flush()
|
||||
|
||||
def write(self, *args, **kwargs):
|
||||
if self.file:
|
||||
self.file.write(*args, **kwargs)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user