Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/j-fu/lessunitful.jl
https://github.com/j-fu/lessunitful.jl
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/j-fu/lessunitful.jl
- Owner: j-fu
- License: mit
- Created: 2022-07-07T21:15:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-04T15:59:23.000Z (5 months ago)
- Last Synced: 2024-09-03T23:01:21.130Z (4 months ago)
- Language: Julia
- Size: 409 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![linux-macos-windows](https://github.com/j-fu/LessUnitful.jl/actions/workflows/ci.yml/badge.svg)](https://github.com/j-fu/LessUnitful.jl/actions/workflows/ci.yml)
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://j-fu.github.io/LessUnitful.jl/stable)
[![](https://img.shields.io/badge/docs-dev-blue.svg)](https://j-fu.github.io/LessUnitful.jl/dev)
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)LessUnitful
===========Small package which provides convenience tools to access quantities based on [Unitful.jl](https://github.com/PainterQubits/Unitful.jl) and [PhysicalConstants.jl](https://github.com/JuliaPhysics/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"`.