removed unreachable special case for raw data (uint16) reaching aggregation [adapter.process calls handler.process with conversion=handler.can_convert(), which checks if gain and pedestal are truthy; with conversion, the dtype is float32 or int32; if handler.pedestal_file is falsy, the image is skipped upon receive -> special case can never trigger]
This commit is contained in:
@ -14,9 +14,6 @@ def calc_apply_aggregation(results, data, pixel_mask_pf, aggregator):
|
|||||||
|
|
||||||
|
|
||||||
def calc_data(results, data, aggregator):
|
def calc_data(results, data, aggregator):
|
||||||
if data.dtype == np.uint16:
|
|
||||||
return data
|
|
||||||
|
|
||||||
apply_aggregation = results.get("apply_aggregation", False)
|
apply_aggregation = results.get("apply_aggregation", False)
|
||||||
|
|
||||||
if not apply_aggregation:
|
if not apply_aggregation:
|
||||||
@ -64,9 +61,6 @@ def calc_aggregate(results, data, aggregator):
|
|||||||
|
|
||||||
|
|
||||||
def calc_aggregation_ready(results, data, aggregator):
|
def calc_aggregation_ready(results, data, aggregator):
|
||||||
if data.dtype == np.uint16:
|
|
||||||
return False
|
|
||||||
|
|
||||||
apply_aggregation = results.get("apply_aggregation", False)
|
apply_aggregation = results.get("apply_aggregation", False)
|
||||||
apply_threshold = results.get("apply_threshold", False)
|
apply_threshold = results.get("apply_threshold", False)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user