removed unused data argument and numpy import
This commit is contained in:
@ -1,5 +1,3 @@
|
|||||||
import numpy as np
|
|
||||||
|
|
||||||
from .mask import calc_mask_pixels
|
from .mask import calc_mask_pixels
|
||||||
from .thresh import threshold
|
from .thresh import threshold
|
||||||
|
|
||||||
@ -8,7 +6,7 @@ def calc_apply_aggregation(results, data, pixel_mask_pf, aggregator):
|
|||||||
calc_apply_threshold(results, data) # changes data in place
|
calc_apply_threshold(results, data) # changes data in place
|
||||||
data = calc_data(results, data, aggregator)
|
data = calc_data(results, data, aggregator)
|
||||||
calc_mask_pixels(data, pixel_mask_pf) # changes data in place
|
calc_mask_pixels(data, pixel_mask_pf) # changes data in place
|
||||||
aggregation_ready = calc_aggregation_ready(results, data, aggregator)
|
aggregation_ready = calc_aggregation_ready(results, aggregator)
|
||||||
return data, aggregation_ready
|
return data, aggregation_ready
|
||||||
|
|
||||||
|
|
||||||
@ -60,7 +58,7 @@ def calc_aggregate(results, data, aggregator):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
def calc_aggregation_ready(results, data, aggregator):
|
def calc_aggregation_ready(results, aggregator):
|
||||||
apply_aggregation = results.get("apply_aggregation", False)
|
apply_aggregation = results.get("apply_aggregation", False)
|
||||||
if not apply_aggregation:
|
if not apply_aggregation:
|
||||||
return False
|
return False
|
||||||
|
Reference in New Issue
Block a user