-
Notifications
You must be signed in to change notification settings - Fork 1
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
Future Warning #62
Comments
These are the xarray docs: https://xarray.pydata.org/en/stable/generated/xarray.Dataset.resample.html#id2 and they point to a pandas docs page, which moved to here: https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html Searching for 'offset aliases' yields another link to this page: https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#timeseries-offset-aliases One of you can checkout the different aliases there, to see which are unambiguous. Alternatively, we can maybe create a RUINSapp/ruins/apps/weather.py Line 147 in 06ad9d7
|
Found it. It's this line: RUINSapp/ruins/apps/weather.py Line 271 in 06ad9d7
|
Actually, it's not that easy anymore. @cojacoo, at the given line: RUINSapp/ruins/apps/weather.py Line 271 in 06ad9d7
you extract a 1 month chunk from the xarray. Is it ok to replace this by 30 days, which would be fine for pandas, or do we need to calculate the exact timedelta for the given month? That would involve to check the month of the first timestep and then creating a new one exactly one month eariler. |
I have no clue if the removal of this functionality actually corrects a function which has never existed (doing all the checks etc.) or if it bluntly aggregated for 30 days anyways. For me using 30 days is fine. We could also use 30.5 days... |
Alright, makes my life easier. I'll append a fix to this issue to any of the upcoming versions. |
We have a new
FutureWarning
:The traceback does not point to the actual causing code, but to streamlit, which is obviously not the problem. I guess I tracked it down to these lines:
RUINSapp/ruins/apps/weather.py
Line 160 in 06ad9d7
The text was updated successfully, but these errors were encountered: