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
<!--Please ensure the PR fulfills the following requirements! -->
<!-- If this is your first PR, make sure to add your details to the
AUTHORS.rst! -->
### Pull Request Checklist:
- [x] This PR addresses an already opened issue (for bug fixes /
features)
- This PR fixes#1562, fixesOuranosinc/ESPO-Internal#3
- [x] Tests for the changes have been added (for bug fixes / features)
- [ ] (If applicable) Documentation has been added / updated (for bug
fixes / features)
- [x] CHANGES.rst has been updated (with summary of main changes)
- [x] Link to issue (:issue:`number`) and pull request (:pull:`number`)
has been added
### What kind of change does this PR introduce?
* When `missing=0` is passed to `convert_calendar`, it is used instead
of replaced by `np.NaN` by faulty expression.
### Does this PR introduce a breaking change?
No.
### Other information:
Xarray's implementation does not have this problem.
If any requested
missing
value evaluates as False (like 0), it gets ignored and np.NaN is used instead.xclim/xclim/core/calendar.py
Line 506 in 85a2f74
The text was updated successfully, but these errors were encountered: