Skip to content

Releases: KenKundert/quantiphy

v2.20

27 Apr 23:17
Compare
Choose a tag to compare
  • Include full quantities if available in IncompatibleUnits errors

v2.19

06 Jan 07:49
Compare
Choose a tag to compare
  • Added new standard SI scale factors (Q, R, r, q).
  • Subclasses of Quantity with units now convert values to the desired units rather than allowing the units of the class to be overridden by those of the value.
  • Added scale factor conversion.
  • Added quantity functions: as_real, as_tuple, render, fixed, and binary.
  • Fixed rendering of full precision numbers in Quantity.fixed().
  • Added preferred_units Quantity preference.
  • Added “cover” option to strip_radix Quantity preference.
  • Added type hints.

v2.18

01 Sep 05:48
Compare
Choose a tag to compare
  • Support parameterized unit conversions (such as molarity).
  • Allow % to act as a scale factor.
  • First argument of scaling functions are now guaranteed to be quantities.
  • Added UnitConversion.fixture decorator function.
  • Added UnitConversion.activate method (allows overridden converters to be re-activated).

2.17

05 Jan 04:04
Compare
Choose a tag to compare
  • Refine the list of currency symbols.
  • Allows currency symbols to be given before or after the underlying number.
  • Allow Quantity subclasses to be used in scaling if they have units.

v2.16

14 Dec 19:35
Compare
Choose a tag to compare
  • Add support for — as comment character and make it the default.

v2.15

03 Aug 18:20
Compare
Choose a tag to compare
  • Updated predefined physical constants to CODATA 2018 values.
  • Switched to more permissive MIT license.
  • Add feet to the available length/distance unit conversions.

v2.14

18 Jun 20:54
Compare
Choose a tag to compare
  • Allow primary argument of Quantity.is_close() and Quantity.add() to be a string.

v2.13

14 Oct 06:07
Compare
Choose a tag to compare
  • Allow currency symbols in compound units (ex: $/oz or lbs/$).

v2.12

25 Jul 18:23
Compare
Choose a tag to compare
  • Allow currency symbols in compound units (ex: $/oz or lbs/$).

v2.11

19 Jul 19:03
Compare
Choose a tag to compare
  • 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.