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

Add celsius as unit #68

Merged
merged 3 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
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
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
Loading