Skip to content

Releases: SciTools/cf-units

v2.1.2

24 Jul 07:33
Compare
Choose a tag to compare

This patch release includes the following changes:

  • Fix to deal with non-Unit equality (#150, #149)
  • Fixes to setup.py, primarily for correctly setting __NUMPY_SETUP__ on __builtins__ (#153, #152, #151)

v2.1.1

02 Feb 18:51
812009c
Compare
Choose a tag to compare
  • Added a UDUNITS2 -> [La]TeX converter. cf_units.tex.tex(unit_string)

    tex

  • In order to solve the above, a formal UDUNITS2 grammar and a private parser API was added (#140)

  • Support for unicode units (e.g. cf_units.Unit('π m²')) (#135, #137)

  • Replaced use of private _Unit factory function (#131)

  • Improve py38 compatibility (#142)

  • Better UDUNITS2 exception handling for py3 (#136)

  • Allow pip install without needing numpy pre-installed (#145)

v2.1.0

02 Feb 18:09
90c705f
Compare
Choose a tag to compare
Allow setup.py without numpy being pre-installed. (#145)

Fixes issue #144.

v2.0.2

02 Jun 07:50
23610d4
Compare
Choose a tag to compare

cf_units was renamed to cf-units for broader consistency with the scientific python naming practices

v2.0.1

21 May 17:22
a9335a8
Compare
Choose a tag to compare

Fix source tar-ball distribution, which was missing necessary cython files.

v2.0.0

21 May 16:26
58f23f3
Compare
Choose a tag to compare

Technically, this release should have no breaking changes between v1.x and v2.x.

However, the major change in this release is that udunits is now wrapped via cython, not ctypes. This is in response to costly import times being experienced on distributed filesystems such as Lustre (where gcc was being called to identify the libudunits.so path).

This means that the cf_units/site.cfg is now no longer used to identify the location of libudunits, and standard LD library path definitions may be used instead.

v1.2.0

04 Jan 15:28
b74f3be
Compare
Choose a tag to compare
  • Use succinct unit string for str (#79)
  • Handle reference time units of months & years appropriately (#72)

v1.1.3

22 Sep 14:57
Compare
Choose a tag to compare

Fix for num2date/date2num allowing support for multi-dimensional arrays.

v1.1.2

15 Sep 08:20
Compare
Choose a tag to compare

Bug fix: #66
Ensure dates are rounded to nearest second when using netcdf4-python. The netcdf4-python behaviour changed between v1.1.1 and 1.2.2.
This release is insulated from that change.

v1.1.1

23 Jun 09:37
Compare
Choose a tag to compare

Cross platform bug fix to correctly load udunits2 xml database from site.cfg