Change log¶
version 3.2.9¶
2020-07-24
New attribute:
cfunits.Units.has_offset
cftime.Units.reftime
now always returns acftime.datetime
object.Fixed bug that caused failure when hashing reference time units.
Changed dependency:
cftime>=1.2.1
version 3.2.8¶
2020-07-02
Fixed bug that caused failure when an
int
orfloat
was input tocfunits.Units.conform
(https://github.com/NCAS-CMS/cfunits/issues/9).Allowed
list
andtuple
to be input tocfunits.Units.conform
(https://github.com/NCAS-CMS/cfunits/issues/9).
version 3.2.7¶
2020-05-20
Minor changes to allow for
cftime==1.1.3
Changed dependency:
cftime>=1.1.3
version 3.2.6¶
2020-04-27
Fixed bug that caused a
KeyError: '1r'
exception, due to an incorrect format statement.
version 3.2.5¶
2020-03-26
Check that the udunits2 library exists (with thanks to Gareth Jones).
Changed dependency:
cftime>=1.1.1
version 3.2.4¶
2020-01-07
Use ctypes.util.find_library to get name of udunits2 library (with thanks to Lance Helsten)
version 3.2.3¶
2019-11-28
Fixed a bug that rased an exception for units specified by non-strings (https://github.com/NCAS-CMS/cfunits/issues/1).
version 3.1.0¶
2019-08-02
Added
reason_notvalid
attribute, and improved handling of invalid calendars.
version 1.8¶
2018-09-13
Trap “ValueError: negative reference year in time units, must be >= 1” so that a Units object is returned that has isvalid=False.
Added “message” attribute that reports on why bad units are bad. Is “None” if units are OK.
version 1.6¶
2018-08-23
Bad units now do not raise an exception, but may be checked with the “isvalid” atttribute.
Version 1.1¶
2015-10-28
Bug fix to Units.conform for scalar numpy arrays.
Removed support for netCDF4-python versions < 1.1.1
Same as cf/units.py in cf-python version 1.1