Skip to content

Commit c0f0aaf

Browse files
committed
update model version
1 parent 496e7d4 commit c0f0aaf

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

pyenzyme/versions/v2.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
## This is a generated file. Do not modify it manually!
3434

3535
from __future__ import annotations
36-
from enum import Enum
3736
from pydantic import BaseModel, Field, ConfigDict
3837
from typing import Optional, Generic, TypeVar
38+
from enum import Enum
3939
from uuid import uuid4
4040
from mdmodels.units.annotation import UnitDefinitionAnnot
4141

@@ -137,8 +137,8 @@ class EnzymeMLDocument(BaseModel):
137137
serialization_alias="@context",
138138
default_factory=lambda: {
139139
"enzml": "http://www.enzymeml.org/v2/",
140-
"OBO": "http://purl.obolibrary.org/obo/",
141140
"schema": "https://schema.org/",
141+
"OBO": "http://purl.obolibrary.org/obo/",
142142
"name": "schema:title",
143143
"created": "schema:dateCreated",
144144
"modified": "schema:dateModified",
@@ -335,7 +335,7 @@ def add_to_creators(
335335
if "id" in kwargs:
336336
params["id"] = kwargs["id"]
337337

338-
self.creators.append(Creator(**params)) # type: ignore
338+
self.creators.append(Creator(**params))
339339

340340
return self.creators[-1]
341341

@@ -582,8 +582,8 @@ class Creator(BaseModel):
582582
serialization_alias="@context",
583583
default_factory=lambda: {
584584
"enzml": "http://www.enzymeml.org/v2/",
585-
"OBO": "http://purl.obolibrary.org/obo/",
586585
"schema": "https://schema.org/",
586+
"OBO": "http://purl.obolibrary.org/obo/",
587587
"given_name": "schema:givenName",
588588
"family_name": "schema:familyName",
589589
"mail": "schema:email",
@@ -680,8 +680,8 @@ class Vessel(BaseModel):
680680
serialization_alias="@context",
681681
default_factory=lambda: {
682682
"enzml": "http://www.enzymeml.org/v2/",
683-
"OBO": "http://purl.obolibrary.org/obo/",
684683
"schema": "https://schema.org/",
684+
"OBO": "http://purl.obolibrary.org/obo/",
685685
"id": {
686686
"@id": "schema:identifier",
687687
"@type": "@id",
@@ -779,14 +779,14 @@ class Protein(BaseModel):
779779
)
780780
ld_type: list[str] = Field(
781781
serialization_alias="@type",
782-
default_factory=lambda: ["enzml:Protein", "schema:Protein"],
782+
default_factory=lambda: ["enzml:Protein", "OBO:PR_000000001"],
783783
)
784784
ld_context: dict[str, str | dict] = Field(
785785
serialization_alias="@context",
786786
default_factory=lambda: {
787787
"enzml": "http://www.enzymeml.org/v2/",
788-
"OBO": "http://purl.obolibrary.org/obo/",
789788
"schema": "https://schema.org/",
789+
"OBO": "http://purl.obolibrary.org/obo/",
790790
"id": {
791791
"@id": "schema:identifier",
792792
"@type": "@id",
@@ -900,8 +900,8 @@ class Complex(BaseModel):
900900
serialization_alias="@context",
901901
default_factory=lambda: {
902902
"enzml": "http://www.enzymeml.org/v2/",
903-
"OBO": "http://purl.obolibrary.org/obo/",
904903
"schema": "https://schema.org/",
904+
"OBO": "http://purl.obolibrary.org/obo/",
905905
"id": {
906906
"@id": "schema:identifier",
907907
"@type": "@id",
@@ -1012,8 +1012,8 @@ class SmallMolecule(BaseModel):
10121012
serialization_alias="@context",
10131013
default_factory=lambda: {
10141014
"enzml": "http://www.enzymeml.org/v2/",
1015-
"OBO": "http://purl.obolibrary.org/obo/",
10161015
"schema": "https://schema.org/",
1016+
"OBO": "http://purl.obolibrary.org/obo/",
10171017
"id": {
10181018
"@id": "schema:identifier",
10191019
"@type": "@id",
@@ -1123,8 +1123,8 @@ class Reaction(BaseModel):
11231123
serialization_alias="@context",
11241124
default_factory=lambda: {
11251125
"enzml": "http://www.enzymeml.org/v2/",
1126-
"OBO": "http://purl.obolibrary.org/obo/",
11271126
"schema": "https://schema.org/",
1127+
"OBO": "http://purl.obolibrary.org/obo/",
11281128
"id": {
11291129
"@id": "schema:identifier",
11301130
"@type": "@id",
@@ -1251,8 +1251,8 @@ class ReactionElement(BaseModel):
12511251
serialization_alias="@context",
12521252
default_factory=lambda: {
12531253
"enzml": "http://www.enzymeml.org/v2/",
1254-
"OBO": "http://purl.obolibrary.org/obo/",
12551254
"schema": "https://schema.org/",
1255+
"OBO": "http://purl.obolibrary.org/obo/",
12561256
"species_id": {
12571257
"@id": "schema:identifier",
12581258
"@type": "@id",
@@ -1351,8 +1351,8 @@ class Equation(BaseModel):
13511351
serialization_alias="@context",
13521352
default_factory=lambda: {
13531353
"enzml": "http://www.enzymeml.org/v2/",
1354-
"OBO": "http://purl.obolibrary.org/obo/",
13551354
"schema": "https://schema.org/",
1355+
"OBO": "http://purl.obolibrary.org/obo/",
13561356
"species_id": {
13571357
"@id": "schema:identifier",
13581358
"@type": "@id",
@@ -1449,7 +1449,7 @@ def add_to_variables(
14491449
if "id" in kwargs:
14501450
params["id"] = kwargs["id"]
14511451

1452-
self.variables.append(Variable(**params)) # type: ignore
1452+
self.variables.append(Variable(**params))
14531453

14541454
return self.variables[-1]
14551455

@@ -1478,8 +1478,8 @@ class Variable(BaseModel):
14781478
serialization_alias="@context",
14791479
default_factory=lambda: {
14801480
"enzml": "http://www.enzymeml.org/v2/",
1481-
"OBO": "http://purl.obolibrary.org/obo/",
14821481
"schema": "https://schema.org/",
1482+
"OBO": "http://purl.obolibrary.org/obo/",
14831483
"id": {
14841484
"@id": "schema:identifier",
14851485
"@type": "@id",
@@ -1567,7 +1567,7 @@ class Parameter(BaseModel):
15671567
upper_bound: Optional[float] = Field(default=None)
15681568
lower_bound: Optional[float] = Field(default=None)
15691569
stderr: Optional[float] = Field(default=None)
1570-
constant: bool = True
1570+
constant: Optional[bool] = True
15711571

15721572
# JSON-LD fields
15731573
ld_id: str = Field(
@@ -1584,8 +1584,8 @@ class Parameter(BaseModel):
15841584
serialization_alias="@context",
15851585
default_factory=lambda: {
15861586
"enzml": "http://www.enzymeml.org/v2/",
1587-
"OBO": "http://purl.obolibrary.org/obo/",
15881587
"schema": "https://schema.org/",
1588+
"OBO": "http://purl.obolibrary.org/obo/",
15891589
"id": {
15901590
"@id": "schema:identifier",
15911591
"@type": "@id",
@@ -1687,8 +1687,8 @@ class Measurement(BaseModel):
16871687
serialization_alias="@context",
16881688
default_factory=lambda: {
16891689
"enzml": "http://www.enzymeml.org/v2/",
1690-
"OBO": "http://purl.obolibrary.org/obo/",
16911690
"schema": "https://schema.org/",
1691+
"OBO": "http://purl.obolibrary.org/obo/",
16921692
"id": {
16931693
"@id": "schema:identifier",
16941694
"@type": "@id",
@@ -1839,8 +1839,8 @@ class MeasurementData(BaseModel):
18391839
serialization_alias="@context",
18401840
default_factory=lambda: {
18411841
"enzml": "http://www.enzymeml.org/v2/",
1842-
"OBO": "http://purl.obolibrary.org/obo/",
18431842
"schema": "https://schema.org/",
1843+
"OBO": "http://purl.obolibrary.org/obo/",
18441844
"species_id": {
18451845
"@type": "@id",
18461846
},

0 commit comments

Comments
 (0)