You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test fails because the last 8 hour mean included in the first day is for the period 0000-0800 the next day, instead of 1600-2400. Therefore not enough data is included in day two and it results in nan.
Expected behavior
MDA8 for 2024-01-02 should be a non-nan numeric value (25.5).
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Caused by wrong alignment. xarray's DataArray.rolling labels data to the left, but labeling it to the right is expected by the current implementation. DataArray.rolling does not support a label-argument so another fix needs to be found.
Describe the bug
Please provide a clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
test_mda8.py:test_calc_mda8
Expected behavior
MDA8 for 2024-01-02 should be a non-nan numeric value (25.5).
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Caused by wrong alignment. xarray's DataArray.rolling labels data to the left, but labeling it to the right is expected by the current implementation. DataArray.rolling does not support a label-argument so another fix needs to be found.
Related: #1322
The text was updated successfully, but these errors were encountered: