NCAS-CMS / cfunits

A Python interface to UNIDATA’s UDUNITS-2 library with CF extensions:
http://ncas-cms.github.io/cfunits
MIT License
11 stars 8 forks source link

cftime.utime removed from cftime 1.5.0 #25

Closed ScottWales closed 3 years ago

ScottWales commented 3 years ago

The new release 1.5.0 of cftime appears to have removed the class cftime.utime, used at https://github.com/NCAS-CMS/cfunits/blob/master/cfunits/units.py#L2591

From their changelog:

  • remove legacy utime class, and legacy JulianDayFromDate and DateFromJulianDay functions (replaced by cftime.datetime.toordinal and cftime.datetime.fromordinal). PR #235.
davidhassell commented 3 years ago

Thanks for highlighting this, @ScottWales.

We'll be creating a PR to fix this and put a out a new version that requires cftime>=1.5.0, soon.

davidhassell commented 3 years ago

~3.3.2 now available in PyPi~

Edit: 3.3.2 had an install problem. This is fixed in 3.3.3: https://pypi.org/project/cfunits/3.3.3/