Skip to content

Commit bf8b7a1

Browse files
author
MD-Models Bot
committed
Model update
1 parent 6efaf74 commit bf8b7a1

File tree

6 files changed

+147
-157
lines changed

6 files changed

+147
-157
lines changed

docs/model.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,6 @@ __value__ `float`
647647
| `AVOGADRO` | avogadro |
648648
| `BECQUEREL` | becquerel |
649649
| `CANDELA` | candela |
650-
| `CELSIUS` | celsius |
651650
| `COULOMB` | coulomb |
652651
| `DIMENSIONLESS` | dimensionless |
653652
| `FARAD` | farad |

python/pyenzyme/dataclass_models.py

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

33
from __future__ import annotations
4-
54
from dataclasses import dataclass, field
6-
from datetime import date, datetime
7-
from enum import Enum
5+
from dataclasses_json import config, dataclass_json
86
from typing import List, Optional
7+
from enum import Enum
98
from uuid import uuid4
10-
11-
from dataclasses_json import config, dataclass_json
9+
from datetime import date, datetime
1210

1311

1412
@dataclass_json
@@ -47,8 +45,8 @@ class EnzymeMLDocument:
4745
metadata=config(field_name="@context"),
4846
default_factory=lambda: {
4947
"enzml": "http://www.enzymeml.org/v2/",
50-
"OBO": "http://purl.obolibrary.org/obo/",
5148
"schema": "https://schema.org/",
49+
"OBO": "http://purl.obolibrary.org/obo/",
5250
"name": "schema:title",
5351
"references": {
5452
"@id": "schema:citation",
@@ -308,8 +306,8 @@ class Creator:
308306
metadata=config(field_name="@context"),
309307
default_factory=lambda: {
310308
"enzml": "http://www.enzymeml.org/v2/",
311-
"OBO": "http://purl.obolibrary.org/obo/",
312309
"schema": "https://schema.org/",
310+
"OBO": "http://purl.obolibrary.org/obo/",
313311
"given_name": "schema:givenName",
314312
"family_name": "schema:familyName",
315313
"mail": "schema:email",
@@ -338,8 +336,8 @@ class Vessel:
338336
metadata=config(field_name="@context"),
339337
default_factory=lambda: {
340338
"enzml": "http://www.enzymeml.org/v2/",
341-
"OBO": "http://purl.obolibrary.org/obo/",
342339
"schema": "https://schema.org/",
340+
"OBO": "http://purl.obolibrary.org/obo/",
343341
"id": {
344342
"@id": "schema:identifier",
345343
"@type": "@id",
@@ -385,8 +383,8 @@ class Protein:
385383
metadata=config(field_name="@context"),
386384
default_factory=lambda: {
387385
"enzml": "http://www.enzymeml.org/v2/",
388-
"OBO": "http://purl.obolibrary.org/obo/",
389386
"schema": "https://schema.org/",
387+
"OBO": "http://purl.obolibrary.org/obo/",
390388
"id": {
391389
"@type": "@id",
392390
},
@@ -428,8 +426,8 @@ class Complex:
428426
metadata=config(field_name="@context"),
429427
default_factory=lambda: {
430428
"enzml": "http://www.enzymeml.org/v2/",
431-
"OBO": "http://purl.obolibrary.org/obo/",
432429
"schema": "https://schema.org/",
430+
"OBO": "http://purl.obolibrary.org/obo/",
433431
"id": {
434432
"@id": "schema:identifier",
435433
"@type": "@id",
@@ -472,8 +470,8 @@ class SmallMolecule:
472470
metadata=config(field_name="@context"),
473471
default_factory=lambda: {
474472
"enzml": "http://www.enzymeml.org/v2/",
475-
"OBO": "http://purl.obolibrary.org/obo/",
476473
"schema": "https://schema.org/",
474+
"OBO": "http://purl.obolibrary.org/obo/",
477475
"id": {
478476
"@id": "schema:identifier",
479477
"@type": "@id",
@@ -517,8 +515,8 @@ class Reaction:
517515
metadata=config(field_name="@context"),
518516
default_factory=lambda: {
519517
"enzml": "http://www.enzymeml.org/v2/",
520-
"OBO": "http://purl.obolibrary.org/obo/",
521518
"schema": "https://schema.org/",
519+
"OBO": "http://purl.obolibrary.org/obo/",
522520
"id": {
523521
"@id": "schema:identifier",
524522
"@type": "@id",
@@ -566,8 +564,8 @@ class ReactionElement:
566564
metadata=config(field_name="@context"),
567565
default_factory=lambda: {
568566
"enzml": "http://www.enzymeml.org/v2/",
569-
"OBO": "http://purl.obolibrary.org/obo/",
570567
"schema": "https://schema.org/",
568+
"OBO": "http://purl.obolibrary.org/obo/",
571569
"species_id": {
572570
"@type": "@id",
573571
},
@@ -602,8 +600,8 @@ class Equation:
602600
metadata=config(field_name="@context"),
603601
default_factory=lambda: {
604602
"enzml": "http://www.enzymeml.org/v2/",
605-
"OBO": "http://purl.obolibrary.org/obo/",
606603
"schema": "https://schema.org/",
604+
"OBO": "http://purl.obolibrary.org/obo/",
607605
"species_id": {
608606
"@type": "@id",
609607
},
@@ -683,8 +681,8 @@ class Parameter:
683681
metadata=config(field_name="@context"),
684682
default_factory=lambda: {
685683
"enzml": "http://www.enzymeml.org/v2/",
686-
"OBO": "http://purl.obolibrary.org/obo/",
687684
"schema": "https://schema.org/",
685+
"OBO": "http://purl.obolibrary.org/obo/",
688686
"id": {
689687
"@id": "schema:identifier",
690688
"@type": "@id",
@@ -726,8 +724,8 @@ class Measurement:
726724
metadata=config(field_name="@context"),
727725
default_factory=lambda: {
728726
"enzml": "http://www.enzymeml.org/v2/",
729-
"OBO": "http://purl.obolibrary.org/obo/",
730727
"schema": "https://schema.org/",
728+
"OBO": "http://purl.obolibrary.org/obo/",
731729
"id": {
732730
"@id": "schema:identifier",
733731
"@type": "@id",
@@ -796,8 +794,8 @@ class MeasurementData:
796794
metadata=config(field_name="@context"),
797795
default_factory=lambda: {
798796
"enzml": "http://www.enzymeml.org/v2/",
799-
"OBO": "http://purl.obolibrary.org/obo/",
800797
"schema": "https://schema.org/",
798+
"OBO": "http://purl.obolibrary.org/obo/",
801799
"species_id": {
802800
"@type": "@id",
803801
},
@@ -828,8 +826,8 @@ class UnitDefinition:
828826
metadata=config(field_name="@context"),
829827
default_factory=lambda: {
830828
"enzml": "http://www.enzymeml.org/v2/",
831-
"OBO": "http://purl.obolibrary.org/obo/",
832829
"schema": "https://schema.org/",
830+
"OBO": "http://purl.obolibrary.org/obo/",
833831
},
834832
)
835833

@@ -883,8 +881,8 @@ class BaseUnit:
883881
metadata=config(field_name="@context"),
884882
default_factory=lambda: {
885883
"enzml": "http://www.enzymeml.org/v2/",
886-
"OBO": "http://purl.obolibrary.org/obo/",
887884
"schema": "https://schema.org/",
885+
"OBO": "http://purl.obolibrary.org/obo/",
888886
},
889887
)
890888

@@ -912,8 +910,8 @@ class EqVariable:
912910
metadata=config(field_name="@context"),
913911
default_factory=lambda: {
914912
"enzml": "http://www.enzymeml.org/v2/",
915-
"OBO": "http://purl.obolibrary.org/obo/",
916913
"schema": "https://schema.org/",
914+
"OBO": "http://purl.obolibrary.org/obo/",
917915
"id": {
918916
"@type": "@id",
919917
},
@@ -947,8 +945,8 @@ class EqParameter:
947945
metadata=config(field_name="@context"),
948946
default_factory=lambda: {
949947
"enzml": "http://www.enzymeml.org/v2/",
950-
"OBO": "http://purl.obolibrary.org/obo/",
951948
"schema": "https://schema.org/",
949+
"OBO": "http://purl.obolibrary.org/obo/",
952950
"id": {
953951
"@type": "@id",
954952
},
@@ -977,7 +975,6 @@ class UnitType(Enum):
977975
AVOGADRO = "avogadro"
978976
BECQUEREL = "becquerel"
979977
CANDELA = "candela"
980-
CELSIUS = "celsius"
981978
COULOMB = "coulomb"
982979
DIMENSIONLESS = "dimensionless"
983980
FARAD = "farad"

python/pyenzyme/pydantic_models.py

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

33
from __future__ import annotations
4-
5-
from datetime import date, datetime
4+
from pydantic import BaseModel, Field, ConfigDict
5+
from typing import Optional, Generic, TypeVar
66
from enum import Enum
7-
from typing import Generic, Optional, TypeVar
87
from uuid import uuid4
9-
10-
from pydantic import BaseModel, ConfigDict, Field
8+
from datetime import date, datetime
119

1210
# Filter Wrapper definition used to filter a list of objects
1311
# based on their attributes
@@ -2233,7 +2231,6 @@ class UnitType(Enum):
22332231
AVOGADRO = "avogadro"
22342232
BECQUEREL = "becquerel"
22352233
CANDELA = "candela"
2236-
CELSIUS = "celsius"
22372234
COULOMB = "coulomb"
22382235
DIMENSIONLESS = "dimensionless"
22392236
FARAD = "farad"

0 commit comments

Comments
 (0)