Change log¶
Version 3.3.7¶
2024-04-23
Allow units to be defined by
bytes(https://github.com/NCAS-CMS/cfunits/issues/54)
Version 3.3.6¶
2023-05-03
New method:
Units.__dask_tokenization__(https://github.com/NCAS-CMS/cfunits/issues/50)
Version 3.3.5¶
2022-09-22
Change default calendar from
'gregorian'to'standard'(https://github.com/NCAS-CMS/cfunits/issues/45)Changed CF version to 1.10 (https://github.com/NCAS-CMS/cfunits/issues/47)
Remove calls to deprecated
distutils, usingpackaginginsteadNew dependency:
packaging>=20.0
Version 3.3.4¶
2021-08-09
Now supports the Windows operating system (https://github.com/NCAS-CMS/cfunits/issues/31)
Version 3.3.3¶
2021-05-24
Fixed error in
setup.pythat prevented installation viapip.
Version 3.3.2¶
2021-05-21
Refactor to remove the dependency on
cftime.utime, that was removed atcftimeversion 1.5.0 (https://github.com/NCAS-CMS/cfunits/issues/25)Changed dependency:
cftime>=1.5.0
Version 3.3.1¶
2020-11-27
Make invalid units non-equivalent and non-equal (https://github.com/NCAS-CMS/cfunits/issues/19)
Version 3.3.0¶
2020-10-09
Python 3.5 support deprecated (3.5 was retired on 2020-09-13)
Make
Units('')andUnits()equivalent (but still not equal).
Version 3.2.9¶
2020-07-24
New attribute:
cfunits.Units.has_offsetcftime.Units.reftimenow always returns acftime.datetimeobject.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
intorfloatwas input tocfunits.Units.conform(https://github.com/NCAS-CMS/cfunits/issues/9).Allowed
listandtupleto 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.3Changed 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 raised an exception for units specified by non-strings (https://github.com/NCAS-CMS/cfunits/issues/1).
Version 3.2.2¶
2019-09-16
Added
_units_since_reftimeattribute.
Version 3.2.0¶
2019-09-12
Added
_canonical_calendarattribute.Improved testing in
Unit.equivalent.
Version 3.1.1¶
2019-08-02
Incremented version.
Version 3.1.0¶
2019-08-02
Added
reason_notvalidattribute, and improved handling of invalid calendars.
Version 3.0.0¶
2019-05-28
Python 2 support deprecated.
Version 1.9¶
2019-02-14
Updated documentation to mention the isvalid attribute.
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.7¶
2018-08-23
Python 3 compatibility (with many thanks to Eric Hutton)
Version 1.6¶
2018-08-23
Bad units now do not raise an exception, but may be checked with the “isvalid” attribute.
Version 1.5¶
2017-02-24
Removed explicit dependency checks
brought in line with cf-python v1.5
Version 1.1.4¶
2016-02-17
Bug fix to setup.py
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
Version 1.0¶
2015-05-27
Initial release
Same as cf/units.py in cf-python version 1.0