-
Notifications
You must be signed in to change notification settings - Fork 49
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
Wrong dtype of return in date2num #202
Comments
Re-openedI just realised that in addition to So unfortunately I think that docstring needs updating too. and... we really need a whatsnew entry for these changes, too. |
Fixed by #483 |
📚 Documentation
The documentation for
cf_units.Unit.date2num
andcf_units.date2num
stipulates that both functions return afloat, or numpy.ndarray of floats
. However, since the return value comes directly fromcftime.date2num
, this will regularly return "an array of integers" since cftime version 1.4.0 (see the changelog).The text was updated successfully, but these errors were encountered: