Skip to content

j-fu/LessUnitful.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linux-macos-windows Aqua QA

LessUnitful

Small package which provides convenience tools to access quantities based on Unitful.jl and PhysicalConstants.jl in an "unitless" way -- as floating point numbers representing the numerical value of a quantity expressed in preferred units (SI base units by default). This appears to be useful in projects using code which cannot easily made unit-aware, e.g. due to the use of sparse linear algebra.

Breaking changes in v1.1

  • Unitful.@u_str is not anymore re-exported. Instead, using Unitful should be used.
  • The functor method (::Unitful.FreeUnits)(x::Real) is now exported by the submodule LessUnitful.MoreUnitful. So if something like x=1|>u"cm" is required (which should give 100cm because 1 is assumed to be a value in the SI Basic units in this method), one needs LessUnitful.MoreUnitful. Due to the type piracy behind this, using this in packages should be avoided.
  • Calculation of physical constants like ph"N_A*e" has been removed as this depended on undocumented internals of Unitful.jl. Just replace this by ph"N_A"*ph"e".

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages