From 5b9775c21ba4b7d9f1ee3151d2f6480d917f7852 Mon Sep 17 00:00:00 2001 From: Julie Prestopnik Date: Wed, 16 Oct 2024 15:09:48 -0600 Subject: [PATCH] Adding self as an argument to calculate_statistic to attempt to resolve error with METplotpy run --- metcalcpy/sum_stat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metcalcpy/sum_stat.py b/metcalcpy/sum_stat.py index 91974682..20b23903 100644 --- a/metcalcpy/sum_stat.py +++ b/metcalcpy/sum_stat.py @@ -295,7 +295,7 @@ def process_rows(self): # return self.parallelize(data, partial(self.run_on_subset, func), num_of_processes) -def calculate_statistic(values, columns_names, stat_name, aggregation=False): +def calculate_statistic(self, values, columns_names, stat_name, aggregation=False): """Calculate the statistic of values Args: values: a np.array of values we want to calculate the statistic on