Skip to content

Commit

Permalink
Define SI units
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxcode123 committed Feb 15, 2024
1 parent cfdb599 commit 251f9a1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/property_utils/units/si_units.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from property_utils.units.descriptors import MeasurementUnit, MeasurementUnitType
from property_utils.units.units import (
TemperatureUnit,
LengthUnit,
MassUnit,
AmountUnit,
TimeUnit,
)


SI_UNITS: dict[MeasurementUnitType, MeasurementUnit] = {
TemperatureUnit: TemperatureUnit.KELVIN,
LengthUnit: LengthUnit.METER,
MassUnit: MassUnit.KILO_GRAM,
AmountUnit: AmountUnit.MOL,
TimeUnit: TimeUnit.SECOND,
}

0 comments on commit 251f9a1

Please sign in to comment.