From 3fe6f146649da905d672ba7609dcb5bdd433411d Mon Sep 17 00:00:00 2001 From: Benjamin Schmidt Date: Mon, 25 Nov 2024 11:31:06 +0100 Subject: [PATCH] fix(aws2cosipy): fixes a bug resulting from a typo in aggregate step Fixes #78 --- cosipy/utilities/aws2cosipy/aws2cosipy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cosipy/utilities/aws2cosipy/aws2cosipy.py b/cosipy/utilities/aws2cosipy/aws2cosipy.py index 023744c..47a96a2 100644 --- a/cosipy/utilities/aws2cosipy/aws2cosipy.py +++ b/cosipy/utilities/aws2cosipy/aws2cosipy.py @@ -486,7 +486,7 @@ def create_2D_input( aggregates[name] = "mean" else: aggregates[name] = "sum" - df = df.resample(_cfg.coords["aggregation_step"].agg(aggregates)) + df = df.resample(_cfg.coords["aggregation_step"]).agg(aggregates) # Load static data print(f"Read static file {static_file}\n") @@ -1049,4 +1049,4 @@ def main(): if __name__ == "__main__": - main() + main() \ No newline at end of file