- Notifications
You must be signed in to change notification settings - Fork 43
Closed
Description
Originally posted to Unidata/netcdf4-python#981, but is still reproducible with freshly-cloned cftime.
#!/usr/bin/env python import numpy as np import cftime as nc4 iarr=np.arange(86400, dtype=np.int32) units='hours since 2018-01-01 00:00:00 UTC' dates1 = nc4.num2date(iarr,units)[-5:] dates2 = nc4.num2date(iarr[-5:],units) print dates1 == dates2 Results in
[ True False True True False]
Should be
[ True True True True True]
Environment:
Ubuntu 18.04, python-numpy 1:1.13.3-2ubuntu1, cftime (revision ea68823).
Thank you!
Metadata
Metadata
Assignees
Labels
No labels