Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some common units #154

Merged
merged 4 commits into from
Nov 7, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/units.jl
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,20 @@ end

## Pressure
@_lazy_register_unit bar 100 * kPa
@_lazy_register_unit Torr 101325//760 * Pa
@_lazy_register_unit mmHg 101325//760 * Pa
Ickaser marked this conversation as resolved.
Show resolved Hide resolved

@add_prefixes bar (m,)
@add_prefixes Torr (m,)
@add_prefixes mmHg ()

@doc(
"Pressure in bars. Available variants: `mbar`.",
bar,
"Pressure in Torr. Available variants: `mTorr`.",
Ickaser marked this conversation as resolved.
Show resolved Hide resolved
Torr,
"Pressure in mmHg.",
mmHg,
)

## Angles
Expand Down
Loading