Skip to content

Commit

Permalink
regenerated lib via gen.toml including celsius
Browse files Browse the repository at this point in the history
  • Loading branch information
haeussma committed Jun 26, 2024
1 parent 0e7f516 commit eb19c84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyenzyme/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2230,6 +2230,7 @@ class UnitType(Enum):
AVOGADRO = "avogadro"
BECQUEREL = "becquerel"
CANDELA = "candela"
CELSIUS = "celsius"
COULOMB = "coulomb"
DIMENSIONLESS = "dimensionless"
FARAD = "farad"
Expand Down
5 changes: 5 additions & 0 deletions pyenzyme/units/predefined.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ def gram():
def kelvin():
return BaseUnit(kind=UnitType.KELVIN, exponent=1, scale=1)

@staticmethod
def celsius():
return BaseUnit(kind=UnitType.CELSIUS, exponent=1, scale=1)

@staticmethod
def dimensionless():
return BaseUnit(kind=UnitType.DIMENSIONLESS, exponent=1, scale=1)
Expand Down Expand Up @@ -139,6 +143,7 @@ def dimensionless():

kelvin = UnitDefinition(base_units=[Unit.kelvin()])._get_name()
K = UnitDefinition(base_units=[Unit.kelvin()])._get_name()
celsius = UnitDefinition(base_units=[Unit.celsius()])._get_name()

## Ontology

Expand Down

0 comments on commit eb19c84

Please sign in to comment.