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

Update si.py with new prefixes #1063

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Changes from all 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
16 changes: 16 additions & 0 deletions src/amuse/units/si.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ def yotta(unit):
return named("yotta" + unit.name, "Y" + unit.symbol, 1.0e24 * unit)


def ronna(unit):
return named("ronna" + unit.name, "R" + unit.symbol, 1.0e27 * unit)


def quetta(unit):
return named("quetta" + unit.name, "Q" + unit.symbol, 1.0e30 * unit)


def deci(unit):
return named("deci" + unit.name, "d" + unit.symbol, 0.1 * unit)

Expand Down Expand Up @@ -98,4 +106,12 @@ def yocto(unit):
return named("yocto" + unit.name, "y" + unit.symbol, 1.0e-24 * unit)


def ronto(unit):
return named("ronto" + unit.name, "r" + unit.symbol, 1.0e-27 * unit)


def quecto(unit):
return named("quecto" + unit.name, "q" + unit.symbol, 1.0e-30 * unit)


k = kilo
Loading