Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in aws2cosipy #78

Closed
benatouba opened this issue Nov 24, 2024 · 0 comments · Fixed by #79
Closed

Typo in aws2cosipy #78

benatouba opened this issue Nov 24, 2024 · 0 comments · Fixed by #79
Labels

Comments

@benatouba
Copy link
Contributor

When aggregate is turned on in utilities_config.

cosipy-aws2cosipy \
    -i ./data/input/Zhadang/Zhadang_ERA5_2009_2018.csv \
    -o ./data/input/Zhadang/Zhadang_ERA5_2009.nc \
    -s ./data/static/Zhadang_static.nc \
-------------------------------------------
Create input
Read input file ./data/input/Zhadang/Zhadang_ERA5_2009_2018.csv
/home/ben/projects/cosipy/cosipy/utilities/aws2cosipy/aws2cosipy.py:68: FutureWarning: The argument 'date_parser' is deprecated and will be removed in a future version. Please use 'date_format' instead, or read your data in as 'object' dtype and then call 'to_datetime'.
  dataframe = pd.read_csv(
Traceback (most recent call last):
  File "/home/ben/.pyenv/versions/cosipy312/bin/cosipy-aws2cosipy", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/ben/projects/cosipy/cosipy/utilities/aws2cosipy/aws2cosipy.py", line 1038, in main
    create_2D_input(
  File "/home/ben/projects/cosipy/cosipy/utilities/aws2cosipy/aws2cosipy.py", line 489, in create_2D_input
    df = df.resample(_cfg.coords["aggregation_step"].agg(aggregates))
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'agg'

The parenthesis is left open.

benatouba added a commit to benatouba/cosipy that referenced this issue Nov 24, 2024
@gampnico gampnico added the bug label Nov 26, 2024
@AnsArn AnsArn closed this as completed in 3fe6f14 Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants