Skip to content

Commit e8d6dc5

Browse files
authored
Merge pull request #68 from EnzymeML/add-celsius
Add celsius as unit
2 parents eb19c84 + b2bb4f1 commit e8d6dc5

File tree

2 files changed

+21
-18
lines changed

2 files changed

+21
-18
lines changed

pyenzyme/model.py

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
## This is a generated file. Do not modify it manually!
22

33
from __future__ import annotations
4-
from pydantic import BaseModel, Field, ConfigDict
5-
from typing import Optional, Generic, TypeVar
4+
65
from enum import Enum
6+
from typing import Generic, Optional, TypeVar
77
from uuid import uuid4
88

9+
from pydantic import BaseModel, ConfigDict, Field
10+
911
# Filter Wrapper definition used to filter a list of objects
1012
# based on their attributes
1113
Cls = TypeVar("Cls")
@@ -104,8 +106,8 @@ class EnzymeMLDocument(BaseModel):
104106
serialization_alias="@context",
105107
default_factory=lambda: {
106108
"enzml": "http://www.enzymeml.org/v2/",
107-
"OBO": "http://purl.obolibrary.org/obo/",
108109
"schema": "https://schema.org/",
110+
"OBO": "http://purl.obolibrary.org/obo/",
109111
"name": "schema:title",
110112
"references": {
111113
"@id": "schema:citation",
@@ -540,8 +542,8 @@ class Creator(BaseModel):
540542
serialization_alias="@context",
541543
default_factory=lambda: {
542544
"enzml": "http://www.enzymeml.org/v2/",
543-
"OBO": "http://purl.obolibrary.org/obo/",
544545
"schema": "https://schema.org/",
546+
"OBO": "http://purl.obolibrary.org/obo/",
545547
"given_name": "schema:givenName",
546548
"family_name": "schema:familyName",
547549
"mail": "schema:email",
@@ -638,8 +640,8 @@ class Vessel(BaseModel):
638640
serialization_alias="@context",
639641
default_factory=lambda: {
640642
"enzml": "http://www.enzymeml.org/v2/",
641-
"OBO": "http://purl.obolibrary.org/obo/",
642643
"schema": "https://schema.org/",
644+
"OBO": "http://purl.obolibrary.org/obo/",
643645
"id": {
644646
"@id": "schema:identifier",
645647
"@type": "@id",
@@ -743,8 +745,8 @@ class Protein(BaseModel):
743745
serialization_alias="@context",
744746
default_factory=lambda: {
745747
"enzml": "http://www.enzymeml.org/v2/",
746-
"OBO": "http://purl.obolibrary.org/obo/",
747748
"schema": "https://schema.org/",
749+
"OBO": "http://purl.obolibrary.org/obo/",
748750
"id": {
749751
"@type": "@id",
750752
},
@@ -854,8 +856,8 @@ class Complex(BaseModel):
854856
serialization_alias="@context",
855857
default_factory=lambda: {
856858
"enzml": "http://www.enzymeml.org/v2/",
857-
"OBO": "http://purl.obolibrary.org/obo/",
858859
"schema": "https://schema.org/",
860+
"OBO": "http://purl.obolibrary.org/obo/",
859861
"id": {
860862
"@id": "schema:identifier",
861863
"@type": "@id",
@@ -960,8 +962,8 @@ class SmallMolecule(BaseModel):
960962
serialization_alias="@context",
961963
default_factory=lambda: {
962964
"enzml": "http://www.enzymeml.org/v2/",
963-
"OBO": "http://purl.obolibrary.org/obo/",
964965
"schema": "https://schema.org/",
966+
"OBO": "http://purl.obolibrary.org/obo/",
965967
"id": {
966968
"@id": "schema:identifier",
967969
"@type": "@id",
@@ -1071,8 +1073,8 @@ class Reaction(BaseModel):
10711073
serialization_alias="@context",
10721074
default_factory=lambda: {
10731075
"enzml": "http://www.enzymeml.org/v2/",
1074-
"OBO": "http://purl.obolibrary.org/obo/",
10751076
"schema": "https://schema.org/",
1077+
"OBO": "http://purl.obolibrary.org/obo/",
10761078
"id": {
10771079
"@id": "schema:identifier",
10781080
"@type": "@id",
@@ -1199,8 +1201,8 @@ class ReactionElement(BaseModel):
11991201
serialization_alias="@context",
12001202
default_factory=lambda: {
12011203
"enzml": "http://www.enzymeml.org/v2/",
1202-
"OBO": "http://purl.obolibrary.org/obo/",
12031204
"schema": "https://schema.org/",
1205+
"OBO": "http://purl.obolibrary.org/obo/",
12041206
"species_id": {
12051207
"@type": "@id",
12061208
},
@@ -1300,8 +1302,8 @@ class Equation(BaseModel):
13001302
serialization_alias="@context",
13011303
default_factory=lambda: {
13021304
"enzml": "http://www.enzymeml.org/v2/",
1303-
"OBO": "http://purl.obolibrary.org/obo/",
13041305
"schema": "https://schema.org/",
1306+
"OBO": "http://purl.obolibrary.org/obo/",
13051307
"species_id": {
13061308
"@type": "@id",
13071309
},
@@ -1461,8 +1463,8 @@ class Parameter(BaseModel):
14611463
serialization_alias="@context",
14621464
default_factory=lambda: {
14631465
"enzml": "http://www.enzymeml.org/v2/",
1464-
"OBO": "http://purl.obolibrary.org/obo/",
14651466
"schema": "https://schema.org/",
1467+
"OBO": "http://purl.obolibrary.org/obo/",
14661468
"id": {
14671469
"@id": "schema:identifier",
14681470
"@type": "@id",
@@ -1564,8 +1566,8 @@ class Measurement(BaseModel):
15641566
serialization_alias="@context",
15651567
default_factory=lambda: {
15661568
"enzml": "http://www.enzymeml.org/v2/",
1567-
"OBO": "http://purl.obolibrary.org/obo/",
15681569
"schema": "https://schema.org/",
1570+
"OBO": "http://purl.obolibrary.org/obo/",
15691571
"id": {
15701572
"@id": "schema:identifier",
15711573
"@type": "@id",
@@ -1713,8 +1715,8 @@ class MeasurementData(BaseModel):
17131715
serialization_alias="@context",
17141716
default_factory=lambda: {
17151717
"enzml": "http://www.enzymeml.org/v2/",
1716-
"OBO": "http://purl.obolibrary.org/obo/",
17171718
"schema": "https://schema.org/",
1719+
"OBO": "http://purl.obolibrary.org/obo/",
17181720
"species_id": {
17191721
"@type": "@id",
17201722
},
@@ -1811,8 +1813,8 @@ class UnitDefinition(BaseModel):
18111813
serialization_alias="@context",
18121814
default_factory=lambda: {
18131815
"enzml": "http://www.enzymeml.org/v2/",
1814-
"OBO": "http://purl.obolibrary.org/obo/",
18151816
"schema": "https://schema.org/",
1817+
"OBO": "http://purl.obolibrary.org/obo/",
18161818
},
18171819
)
18181820

@@ -1941,8 +1943,8 @@ class BaseUnit(BaseModel):
19411943
serialization_alias="@context",
19421944
default_factory=lambda: {
19431945
"enzml": "http://www.enzymeml.org/v2/",
1944-
"OBO": "http://purl.obolibrary.org/obo/",
19451946
"schema": "https://schema.org/",
1947+
"OBO": "http://purl.obolibrary.org/obo/",
19461948
},
19471949
)
19481950

@@ -2036,8 +2038,8 @@ class EqVariable(BaseModel):
20362038
serialization_alias="@context",
20372039
default_factory=lambda: {
20382040
"enzml": "http://www.enzymeml.org/v2/",
2039-
"OBO": "http://purl.obolibrary.org/obo/",
20402041
"schema": "https://schema.org/",
2042+
"OBO": "http://purl.obolibrary.org/obo/",
20412043
"id": {
20422044
"@type": "@id",
20432045
},
@@ -2135,8 +2137,8 @@ class EqParameter(BaseModel):
21352137
serialization_alias="@context",
21362138
default_factory=lambda: {
21372139
"enzml": "http://www.enzymeml.org/v2/",
2138-
"OBO": "http://purl.obolibrary.org/obo/",
21392140
"schema": "https://schema.org/",
2141+
"OBO": "http://purl.obolibrary.org/obo/",
21402142
"id": {
21412143
"@type": "@id",
21422144
},

pyenzyme/units/predefined.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ def dimensionless():
144144
kelvin = UnitDefinition(base_units=[Unit.kelvin()])._get_name()
145145
K = UnitDefinition(base_units=[Unit.kelvin()])._get_name()
146146
celsius = UnitDefinition(base_units=[Unit.celsius()])._get_name()
147+
C = UnitDefinition(base_units=[Unit.celsius()])._get_name()
147148

148149
## Ontology
149150

0 commit comments

Comments
 (0)