Skip to content

Commit

Permalink
API update
Browse files Browse the repository at this point in the history
  • Loading branch information
sdRDM Bot authored and sdRDM Bot committed Sep 23, 2023
1 parent ac55b72 commit b5360ca
Show file tree
Hide file tree
Showing 23 changed files with 51 additions and 51 deletions.
2 changes: 1 addition & 1 deletion datamodel_b07_tc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

__URL__ = "https://github.com/FAIRChemistry/datamodel_b07_tc.git"
__COMMIT__ = "c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
__COMMIT__ = "ac55b72bed16a0027ba585ed1fa2168c71f58708"
2 changes: 1 addition & 1 deletion datamodel_b07_tc/core/author.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ class Author(sdRDM.DataModel):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)
2 changes: 1 addition & 1 deletion datamodel_b07_tc/core/calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ class Calibration(sdRDM.DataModel):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)
2 changes: 1 addition & 1 deletion datamodel_b07_tc/core/chemical.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ class Chemical(sdRDM.DataModel):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)
4 changes: 2 additions & 2 deletions datamodel_b07_tc/core/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from sdRDM.base.listplus import ListPlus
from sdRDM.base.utils import forge_signature, IDGenerator

from astropy.units import UnitBase
from datetime import datetime as Datetime
from astropy.units import UnitBase

from .quantity import Quantity

Expand Down Expand Up @@ -41,5 +41,5 @@ class Data(sdRDM.DataModel):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)
8 changes: 4 additions & 4 deletions datamodel_b07_tc/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
from sdRDM.base.utils import forge_signature, IDGenerator


from .speciesdata import SpeciesData
from .measurement import Measurement
from .generalinformation import GeneralInformation
from .plantsetup import PlantSetup
from .measurement import Measurement
from .speciesdata import SpeciesData
from .experiment import Experiment
from .generalinformation import GeneralInformation


@forge_signature
Expand Down Expand Up @@ -38,7 +38,7 @@ class Dataset(sdRDM.DataModel):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)

def add_to_experiments(
Expand Down
2 changes: 1 addition & 1 deletion datamodel_b07_tc/core/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ class Device(sdRDM.DataModel):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)
12 changes: 6 additions & 6 deletions datamodel_b07_tc/core/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
from sdRDM.base.utils import forge_signature, IDGenerator


from .calibration import Calibration
from .species import Species
from .metadata import Metadata
from .measurementtype import MeasurementType
from .species import Species
from .chemicalformula import ChemicalFormula
from .speciesdata import SpeciesData
from .metadata import Metadata
from .plantsetup import PlantSetup
from .data import Data
from .calibration import Calibration
from .measurement import Measurement
from .plantsetup import PlantSetup
from .speciesdata import SpeciesData


@forge_signature
Expand Down Expand Up @@ -50,7 +50,7 @@ class Experiment(sdRDM.DataModel):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)

def add_to_measurements(
Expand Down
2 changes: 1 addition & 1 deletion datamodel_b07_tc/core/generalinformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class GeneralInformation(sdRDM.DataModel):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)

def add_to_authors(
Expand Down
4 changes: 2 additions & 2 deletions datamodel_b07_tc/core/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@


from .reactantrole import ReactantRole
from .chemical import Chemical
from .stoichiometry import Stoichiometry
from .chemical import Chemical


@forge_signature
Expand All @@ -31,7 +31,7 @@ class Input(sdRDM.DataModel):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)

def add_to_component(
Expand Down
2 changes: 1 addition & 1 deletion datamodel_b07_tc/core/insulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ class Insulation(sdRDM.DataModel):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)
2 changes: 1 addition & 1 deletion datamodel_b07_tc/core/massflowmeter.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ class MassFlowMeter(Device):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)
14 changes: 7 additions & 7 deletions datamodel_b07_tc/core/measurement.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
from sdRDM.base.listplus import ListPlus
from sdRDM.base.utils import forge_signature, IDGenerator

from astropy.units import UnitBase
from datetime import datetime as Datetime
from astropy.units import UnitBase

from .quantity import Quantity
from .data import Data
from .datatype import DataType
from .metadata import Metadata
from .measurementtype import MeasurementType
from .metadata import Metadata
from .datatype import DataType


@forge_signature
Expand Down Expand Up @@ -46,15 +46,15 @@ class Measurement(sdRDM.DataModel):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)

def add_to_metadata(
self,
parameter: Optional[str] = None,
value: Union[str, float, Datetime, None] = None,
abbreviation: Optional[str] = None,
data_type: Union[DataType, str, None] = None,
type: Optional[DataType] = None,
mode: Optional[str] = None,
unit: Optional[UnitBase] = None,
description: Optional[str] = None,
Expand All @@ -68,7 +68,7 @@ def add_to_metadata(
parameter (): Name of the parameter.. Defaults to None
value (): value of the parameter.. Defaults to None
abbreviation (): abbreviation for the parameter.. Defaults to None
data_type (): type of the parameter.. Defaults to None
type (): type of the parameter.. Defaults to None
mode (): mode of the parameter. E.g., on and off.. Defaults to None
unit (): unit of the parameter.. Defaults to None
description (): description of the parameter.. Defaults to None
Expand All @@ -78,7 +78,7 @@ def add_to_metadata(
"parameter": parameter,
"value": value,
"abbreviation": abbreviation,
"data_type": data_type,
"type": type,
"mode": mode,
"unit": unit,
"description": description,
Expand Down
6 changes: 3 additions & 3 deletions datamodel_b07_tc/core/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from pydantic import Field, PrivateAttr
from sdRDM.base.utils import forge_signature, IDGenerator

from astropy.units import UnitBase
from datetime import datetime as Datetime
from astropy.units import UnitBase

from .datatype import DataType

Expand Down Expand Up @@ -35,7 +35,7 @@ class Metadata(sdRDM.DataModel):
description="abbreviation for the parameter.",
)

data_type: Union[DataType, str, None] = Field(
type: Optional[DataType] = Field(
default=None,
description="type of the parameter.",
)
Expand All @@ -59,5 +59,5 @@ class Metadata(sdRDM.DataModel):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)
4 changes: 2 additions & 2 deletions datamodel_b07_tc/core/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@


from .reactantrole import ReactantRole
from .chemical import Chemical
from .stoichiometry import Stoichiometry
from .chemical import Chemical


@forge_signature
Expand All @@ -31,7 +31,7 @@ class Output(sdRDM.DataModel):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)

def add_to_component(
Expand Down
2 changes: 1 addition & 1 deletion datamodel_b07_tc/core/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ class Parameter(sdRDM.DataModel):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)
10 changes: 5 additions & 5 deletions datamodel_b07_tc/core/plantsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
from sdRDM.base.utils import forge_signature, IDGenerator


from .input import Input
from .chemical import Chemical
from .tubing import Tubing
from .output import Output
from .material import Material
from .insulation import Insulation
from .chemical import Chemical
from .tubing import Tubing
from .device import Device
from .input import Input
from .material import Material


@forge_signature
Expand Down Expand Up @@ -53,7 +53,7 @@ class PlantSetup(sdRDM.DataModel):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)

def add_to_devices(
Expand Down
4 changes: 2 additions & 2 deletions datamodel_b07_tc/core/potentiostat.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from sdRDM.base.utils import forge_signature, IDGenerator


from .measurement import Measurement
from .metadata import Metadata
from .device import Device
from .measurement import Measurement


@forge_signature
Expand All @@ -33,5 +33,5 @@ class Potentiostat(Device):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)
4 changes: 2 additions & 2 deletions datamodel_b07_tc/core/pump.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from sdRDM.base.utils import forge_signature, IDGenerator


from .pumptype import PumpType
from .device import Device
from .pumptype import PumpType


@forge_signature
Expand All @@ -27,5 +27,5 @@ class Pump(Device):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)
6 changes: 3 additions & 3 deletions datamodel_b07_tc/core/speciesdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
from sdRDM.base.utils import forge_signature, IDGenerator


from .chemicalformula import ChemicalFormula
from .data import Data
from .calibration import Calibration
from .species import Species
from .data import Data
from .chemicalformula import ChemicalFormula


@forge_signature
Expand Down Expand Up @@ -55,5 +55,5 @@ class SpeciesData(sdRDM.DataModel):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)
2 changes: 1 addition & 1 deletion datamodel_b07_tc/core/stoichiometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ class Stoichiometry(sdRDM.DataModel):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)
2 changes: 1 addition & 1 deletion datamodel_b07_tc/core/thermocouple.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ class Thermocouple(Device):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)
4 changes: 2 additions & 2 deletions datamodel_b07_tc/core/tubing.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from sdRDM.base.utils import forge_signature, IDGenerator


from .material import Material
from .insulation import Insulation
from .material import Material


@forge_signature
Expand Down Expand Up @@ -48,5 +48,5 @@ class Tubing(sdRDM.DataModel):
default="https://github.com/FAIRChemistry/datamodel_b07_tc.git"
)
__commit__: Optional[str] = PrivateAttr(
default="c7407c28baaf7f0667ca7e50953202a7c1ae7ff5"
default="ac55b72bed16a0027ba585ed1fa2168c71f58708"
)

0 comments on commit b5360ca

Please sign in to comment.