early exit 1

This commit is contained in:
2024-08-08 16:07:54 +02:00
parent 7987125bf5
commit a7327ddbf7

View File

@ -4,7 +4,9 @@ import numpy as np
def calc_force_send(results, data, pixel_mask_pf, image, n_aggregated_images, data_summed):
force_send_visualisation = False
if data.dtype != np.uint16:
if data.dtype == np.uint16:
return data, force_send_visualisation, n_aggregated_images, data_summed
apply_threshold = results.get("apply_threshold", False)
apply_aggregation = results.get("apply_aggregation", False)