Wrong dtype of return in date2num #202
Labels
community
Good First Issue
A good issue to take on if you're just getting started with cf-units development
New: Documentation
Highlight a new community raised "documentation" issue
Type: Documentation
📚 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: