Skip to content

Commit

Permalink
Merge pull request #68 from EnzymeML/add-celsius
Browse files Browse the repository at this point in the history
Add celsius as unit
  • Loading branch information
JR-1991 authored Jun 26, 2024
2 parents eb19c84 + b2bb4f1 commit e8d6dc5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
38 changes: 20 additions & 18 deletions pyenzyme/model.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
## This is a generated file. Do not modify it manually!

from __future__ import annotations
from pydantic import BaseModel, Field, ConfigDict
from typing import Optional, Generic, TypeVar

from enum import Enum
from typing import Generic, Optional, TypeVar
from uuid import uuid4

from pydantic import BaseModel, ConfigDict, Field

# Filter Wrapper definition used to filter a list of objects
# based on their attributes
Cls = TypeVar("Cls")
Expand Down Expand Up @@ -104,8 +106,8 @@ class EnzymeMLDocument(BaseModel):
serialization_alias="@context",
default_factory=lambda: {
"enzml": "http://www.enzymeml.org/v2/",
"OBO": "http://purl.obolibrary.org/obo/",
"schema": "https://schema.org/",
"OBO": "http://purl.obolibrary.org/obo/",
"name": "schema:title",
"references": {
"@id": "schema:citation",
Expand Down Expand Up @@ -540,8 +542,8 @@ class Creator(BaseModel):
serialization_alias="@context",
default_factory=lambda: {
"enzml": "http://www.enzymeml.org/v2/",
"OBO": "http://purl.obolibrary.org/obo/",
"schema": "https://schema.org/",
"OBO": "http://purl.obolibrary.org/obo/",
"given_name": "schema:givenName",
"family_name": "schema:familyName",
"mail": "schema:email",
Expand Down Expand Up @@ -638,8 +640,8 @@ class Vessel(BaseModel):
serialization_alias="@context",
default_factory=lambda: {
"enzml": "http://www.enzymeml.org/v2/",
"OBO": "http://purl.obolibrary.org/obo/",
"schema": "https://schema.org/",
"OBO": "http://purl.obolibrary.org/obo/",
"id": {
"@id": "schema:identifier",
"@type": "@id",
Expand Down Expand Up @@ -743,8 +745,8 @@ class Protein(BaseModel):
serialization_alias="@context",
default_factory=lambda: {
"enzml": "http://www.enzymeml.org/v2/",
"OBO": "http://purl.obolibrary.org/obo/",
"schema": "https://schema.org/",
"OBO": "http://purl.obolibrary.org/obo/",
"id": {
"@type": "@id",
},
Expand Down Expand Up @@ -854,8 +856,8 @@ class Complex(BaseModel):
serialization_alias="@context",
default_factory=lambda: {
"enzml": "http://www.enzymeml.org/v2/",
"OBO": "http://purl.obolibrary.org/obo/",
"schema": "https://schema.org/",
"OBO": "http://purl.obolibrary.org/obo/",
"id": {
"@id": "schema:identifier",
"@type": "@id",
Expand Down Expand Up @@ -960,8 +962,8 @@ class SmallMolecule(BaseModel):
serialization_alias="@context",
default_factory=lambda: {
"enzml": "http://www.enzymeml.org/v2/",
"OBO": "http://purl.obolibrary.org/obo/",
"schema": "https://schema.org/",
"OBO": "http://purl.obolibrary.org/obo/",
"id": {
"@id": "schema:identifier",
"@type": "@id",
Expand Down Expand Up @@ -1071,8 +1073,8 @@ class Reaction(BaseModel):
serialization_alias="@context",
default_factory=lambda: {
"enzml": "http://www.enzymeml.org/v2/",
"OBO": "http://purl.obolibrary.org/obo/",
"schema": "https://schema.org/",
"OBO": "http://purl.obolibrary.org/obo/",
"id": {
"@id": "schema:identifier",
"@type": "@id",
Expand Down Expand Up @@ -1199,8 +1201,8 @@ class ReactionElement(BaseModel):
serialization_alias="@context",
default_factory=lambda: {
"enzml": "http://www.enzymeml.org/v2/",
"OBO": "http://purl.obolibrary.org/obo/",
"schema": "https://schema.org/",
"OBO": "http://purl.obolibrary.org/obo/",
"species_id": {
"@type": "@id",
},
Expand Down Expand Up @@ -1300,8 +1302,8 @@ class Equation(BaseModel):
serialization_alias="@context",
default_factory=lambda: {
"enzml": "http://www.enzymeml.org/v2/",
"OBO": "http://purl.obolibrary.org/obo/",
"schema": "https://schema.org/",
"OBO": "http://purl.obolibrary.org/obo/",
"species_id": {
"@type": "@id",
},
Expand Down Expand Up @@ -1461,8 +1463,8 @@ class Parameter(BaseModel):
serialization_alias="@context",
default_factory=lambda: {
"enzml": "http://www.enzymeml.org/v2/",
"OBO": "http://purl.obolibrary.org/obo/",
"schema": "https://schema.org/",
"OBO": "http://purl.obolibrary.org/obo/",
"id": {
"@id": "schema:identifier",
"@type": "@id",
Expand Down Expand Up @@ -1564,8 +1566,8 @@ class Measurement(BaseModel):
serialization_alias="@context",
default_factory=lambda: {
"enzml": "http://www.enzymeml.org/v2/",
"OBO": "http://purl.obolibrary.org/obo/",
"schema": "https://schema.org/",
"OBO": "http://purl.obolibrary.org/obo/",
"id": {
"@id": "schema:identifier",
"@type": "@id",
Expand Down Expand Up @@ -1713,8 +1715,8 @@ class MeasurementData(BaseModel):
serialization_alias="@context",
default_factory=lambda: {
"enzml": "http://www.enzymeml.org/v2/",
"OBO": "http://purl.obolibrary.org/obo/",
"schema": "https://schema.org/",
"OBO": "http://purl.obolibrary.org/obo/",
"species_id": {
"@type": "@id",
},
Expand Down Expand Up @@ -1811,8 +1813,8 @@ class UnitDefinition(BaseModel):
serialization_alias="@context",
default_factory=lambda: {
"enzml": "http://www.enzymeml.org/v2/",
"OBO": "http://purl.obolibrary.org/obo/",
"schema": "https://schema.org/",
"OBO": "http://purl.obolibrary.org/obo/",
},
)

Expand Down Expand Up @@ -1941,8 +1943,8 @@ class BaseUnit(BaseModel):
serialization_alias="@context",
default_factory=lambda: {
"enzml": "http://www.enzymeml.org/v2/",
"OBO": "http://purl.obolibrary.org/obo/",
"schema": "https://schema.org/",
"OBO": "http://purl.obolibrary.org/obo/",
},
)

Expand Down Expand Up @@ -2036,8 +2038,8 @@ class EqVariable(BaseModel):
serialization_alias="@context",
default_factory=lambda: {
"enzml": "http://www.enzymeml.org/v2/",
"OBO": "http://purl.obolibrary.org/obo/",
"schema": "https://schema.org/",
"OBO": "http://purl.obolibrary.org/obo/",
"id": {
"@type": "@id",
},
Expand Down Expand Up @@ -2135,8 +2137,8 @@ class EqParameter(BaseModel):
serialization_alias="@context",
default_factory=lambda: {
"enzml": "http://www.enzymeml.org/v2/",
"OBO": "http://purl.obolibrary.org/obo/",
"schema": "https://schema.org/",
"OBO": "http://purl.obolibrary.org/obo/",
"id": {
"@type": "@id",
},
Expand Down
1 change: 1 addition & 0 deletions pyenzyme/units/predefined.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,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()
C = UnitDefinition(base_units=[Unit.celsius()])._get_name()

## Ontology

Expand Down

0 comments on commit e8d6dc5

Please sign in to comment.