Skip to content

Releases: KenKundert/quantiphy

v2.11

19 Jul 19:03

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.

v2.10

03 Mar 04:13

Choose a tag to compare

  • 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

28 Jan 17:47

Choose a tag to compare

  • Made Quantity.extract() more forgiving.
  • Support radix and comma processing when converting strings to Quantity.

v2.8

08 Jan 19:01

Choose a tag to compare

  • Fix nit in installer (setup.py).

v2.7

18 Dec 00:05

Choose a tag to compare

  • improve the ability of both quantiphy.Quantity.add() and quantiphy.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

24 Sep 16:55

Choose a tag to compare

  • now support Quantity arguments with Quantity.extract().
  • allow plus and minus signs to be replaced with Unicode equivalents.

v2.5

17 Jan 07:07

Choose a tag to compare

  • 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

12 Sep 18:11

Choose a tag to compare

  • 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

12 Mar 06:14

Choose a tag to compare

  • 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

22 Nov 17:48

Choose a tag to compare

bump version to 2.2