Skip to content

Releases: mechanomy/UnitTypes.jl

v3.0.0

25 Jun 17:03

Choose a tag to compare

UnitTypes v3.0.0

Diff since v2.0.3

Version 3.0 brings the major addition of a Catchall type for operations that result in undefined units; explicit types are still preferred and will be chosen when available.

  • General exponentiation now works
  • UnitType ranges can be defined over any coherent unit
  • Convenience (1:5)u"m" added
  • Broadcasting implemented: 3.*(1:5)u"m"
  • relateMeasures now accepts compound left hand expressions, intermediate types therein are defined
  • Fixed non-const globals
  • Test coverage on all new code
  • Extended benchmark comparison suite
  • Documentation updated

Breaking changes:

  • @makeMeasure argument order changed to be more natural: @makeMeasure 1e-3 Meter = 1 MilliMeter "mm"

Closed issues:

  • exponent handling (#20)
  • Density * Length = undefined? (#21)
  • add getUnitAbbreviation(1u"mm") (#25)
  • Catchall UnitType (#26)
  • More complex unit handling (#27)

v2.0.3

23 Mar 18:44

Choose a tag to compare

UnitTypes v2.0.3

Diff since v2.0.2

  • broadens overloads on * and / so that they work on child and base types, issue #24, also fixes #23

Closed issues:

  • u_str for Inch (#23)

v2.0.2

02 Mar 20:39

Choose a tag to compare

UnitTypes v2.0.2

Diff since v2.0.1

v2.0.1

05 Dec 11:41

Choose a tag to compare

UnitTypes v2.0.1

Diff since v2.0.0

Closed issues:

  • Creating new types breaks precompilation (#22)

v2.0.0

06 Nov 17:36

Choose a tag to compare

UnitTypes v2.0.0

Diff since v1.0.2

  • Function overloads on UnitTypes are now specifically typed, as the subtyping approach of v1.0.0 lead to #19. Performance is now on-par with Unitful and very close to Number.
  • Defined types are now documented in the UnitTypes.allUnitTypes dictionary, with keys being the UnitTypes. UnitTypes.allUnitTypes[Meter]
  • Affine definitions can now be made by explicit conversion functions in @makeMeasure: @makeMeasure Meter = Inch "in" 0.0254, @makeMeasure Kelvin = Fahrenheit "F" f->(f+459.67)*5/9 k->k*9/5-459.67 This is a breaking change.
  • Broadcasting and _colon overloads removed due to v1+'s opaque interface specification.

Closed issues:

  • Pascal = N/m2! (#18)

v1.0.2

27 Feb 13:10

Choose a tag to compare

UnitTypes v1.0.2

Diff since v1.0.1

Closed issues:

  • u_str doesn't seem to work on my machine (#16)

v1.0.1

27 Feb 03:43

Choose a tag to compare

UnitTypes v1.0.1

Diff since v1.0.0

Breaking changes

  • macros renamed
  • Measure module removed, all is now contained within UnitTypes

Closed issues:

  • inverse length? (#3)
  • Dimension + Measure = Dimension (#4)
  • Documentation displays strangely (#15)

v1.0.0

26 Feb 18:42

Choose a tag to compare

fix ticks