Releases: KenKundert/quantiphy
Releases · KenKundert/quantiphy
v2.11
- Dropping support for all versions of Python older than 3.5.
- Added sia form (ASCII only SI scale factors).
- Added only_e_notation argument to Quantity.all_from_conv_fmt().
- Added Quantity.reset_prefs() method.
v2.10
- Added negligible, tight_units, nan, and inf preferences.
- Added negligible argument to render.
- Added infinity_symbol attribute.
- Changed the return values for Quantity.is_nan() and Quantity.is_infinite().
v2.9
- Made Quantity.extract() more forgiving.
- Support radix and comma processing when converting strings to Quantity.
v2.8
- Fix nit in installer (setup.py).
v2.7
- improve the ability of both
quantiphy.Quantity.add()andquantiphy.Quantity.scale()to retain attributes. - added accept_binary preference.
- support all preferences as class attributes.
- allow radix and comma to be replaced by adding radix and comma preferences.
v2.6
- now support Quantity arguments with Quantity.extract().
- allow plus and minus signs to be replaced with Unicode equivalents.
v2.5
- added RKM codes example.
- added check_value = 'strict' to quantiphy.Quantity.add().
- added backward compatibility for form argument of quantiphy.Quantity.render() if it is passed as unnamed argument.
- made quantiphy.Quantity.extract() a bit more general.
- reformulated exceptions.
- added support for binary scale factors and quantiphy.Quantity.binary().
v2.4
- fixed bug in format that resulted in several format codes ignoring width
- follow Python convention of right-justifying numbers by default.
- add Quantity.add() (adds a number to a quantity returning a new quantity)
- added # alternate form of string formatting.
- Change show_si to form (argument on Quantity.set_prefs() and Quantity.render()
- Added concept of equivalent units for unit conversion to documentation.
- Enhance UnitConversion so that it supports nonlinear conversions.
v2.3
- enhanced Quantity.extract()
- non-conforming lines are now ignored
- values may be expressions
- values need not be quantities
- can specify a quantity name distinct from dictionary name
- enhanced the formatting capabilities.
- added center alignment
- added p format
- added show_commas preference.
- added strip_zeros, strip_radix to Quantity.render()
- added Quantity.fixed() method
- added Quantity.format() method
- support any format specifier supported by Python for floats
v2.2
bump version to 2.2