Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/FAIRChemistry/chromatopy
Browse files Browse the repository at this point in the history
…into develop
  • Loading branch information
haeussma committed Mar 1, 2024
2 parents 556ad9c + bb0cf2c commit 117b9dc
Show file tree
Hide file tree
Showing 16 changed files with 103 additions and 13 deletions.
4 changes: 2 additions & 2 deletions chromatopy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

__URL__ = ""
__COMMIT__ = ""
__URL__ = "https://github.com/FAIRChemistry/HPLC-specification"
__COMMIT__ = "e1922ec9220fac3332dbf180c6db0a5fe1eefd25"
10 changes: 8 additions & 2 deletions chromatopy/core/chromatigraphicexperiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
from sdRDM.base.utils import forge_signature
from sdRDM.tools.utils import elem2dict
from datetime import datetime as Datetime
from .signal import Signal
from .measurement import Measurement
from .method import Method
from .measurement import Measurement
from .signal import Signal
from .molecule import Molecule


Expand Down Expand Up @@ -46,6 +46,12 @@ class ChromatigraphicExperiment(sdRDM.DataModel):
tag="measurements",
json_schema_extra=dict(multiple=True),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/HPLC-specification"
)
_commit: Optional[str] = PrivateAttr(
default="e1922ec9220fac3332dbf180c6db0a5fe1eefd25"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
8 changes: 7 additions & 1 deletion chromatopy/core/column.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from sdRDM.base.listplus import ListPlus
from sdRDM.base.utils import forge_signature
from sdRDM.tools.utils import elem2dict
from .inlet import Inlet
from .detector import Detector
from .inlet import Inlet


@forge_signature
Expand Down Expand Up @@ -106,6 +106,12 @@ class Column(sdRDM.DataModel):
tag="outlet_pressure",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/HPLC-specification"
)
_commit: Optional[str] = PrivateAttr(
default="e1922ec9220fac3332dbf180c6db0a5fe1eefd25"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
6 changes: 6 additions & 0 deletions chromatopy/core/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ class Detector(sdRDM.DataModel):
tag="reference_flow",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/HPLC-specification"
)
_commit: Optional[str] = PrivateAttr(
default="e1922ec9220fac3332dbf180c6db0a5fe1eefd25"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
6 changes: 6 additions & 0 deletions chromatopy/core/fiddetector.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ class FIDDetector(Detector):
tag="negative_polarity",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/HPLC-specification"
)
_commit: Optional[str] = PrivateAttr(
default="e1922ec9220fac3332dbf180c6db0a5fe1eefd25"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
6 changes: 6 additions & 0 deletions chromatopy/core/inlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ class Inlet(sdRDM.DataModel):
tag="gas_type",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/HPLC-specification"
)
_commit: Optional[str] = PrivateAttr(
default="e1922ec9220fac3332dbf180c6db0a5fe1eefd25"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
10 changes: 8 additions & 2 deletions chromatopy/core/measurement.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
from sdRDM.base.utils import forge_signature
from sdRDM.tools.utils import elem2dict
from datetime import datetime as Datetime
from .signal import Signal
from .peak import Peak
from .signaltype import SignalType
from .peak import Peak
from .signal import Signal


@forge_signature
Expand Down Expand Up @@ -52,6 +52,12 @@ class Measurement(sdRDM.DataModel):
tag="injection_volume_unit",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/HPLC-specification"
)
_commit: Optional[str] = PrivateAttr(
default="e1922ec9220fac3332dbf180c6db0a5fe1eefd25"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
12 changes: 9 additions & 3 deletions chromatopy/core/method.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
from sdRDM.base.listplus import ListPlus
from sdRDM.base.utils import forge_signature
from sdRDM.tools.utils import elem2dict
from .oven import Oven
from .inlet import Inlet
from .valve import Valve
from .column import Column
from .detector import Detector
from .valve import Valve
from .inlet import Inlet
from .oven import Oven


@forge_signature
Expand Down Expand Up @@ -81,6 +81,12 @@ class Method(sdRDM.DataModel):
tag="valves",
json_schema_extra=dict(multiple=True),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/HPLC-specification"
)
_commit: Optional[str] = PrivateAttr(
default="e1922ec9220fac3332dbf180c6db0a5fe1eefd25"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
10 changes: 8 additions & 2 deletions chromatopy/core/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
from sdRDM.base.listplus import ListPlus
from sdRDM.base.utils import forge_signature
from sdRDM.tools.utils import elem2dict
from .role import Role
from .peak import Peak
from .standard import Standard
from .peak import Peak
from .role import Role


@forge_signature
Expand Down Expand Up @@ -82,6 +82,12 @@ class Molecule(sdRDM.DataModel):
tag="role",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/HPLC-specification"
)
_commit: Optional[str] = PrivateAttr(
default="e1922ec9220fac3332dbf180c6db0a5fe1eefd25"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
6 changes: 6 additions & 0 deletions chromatopy/core/oven.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ class Oven(sdRDM.DataModel):
tag="run_time",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/HPLC-specification"
)
_commit: Optional[str] = PrivateAttr(
default="e1922ec9220fac3332dbf180c6db0a5fe1eefd25"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
6 changes: 6 additions & 0 deletions chromatopy/core/peak.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ class Peak(sdRDM.DataModel):
tag="percent_area",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/HPLC-specification"
)
_commit: Optional[str] = PrivateAttr(
default="e1922ec9220fac3332dbf180c6db0a5fe1eefd25"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
6 changes: 6 additions & 0 deletions chromatopy/core/ramp.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ class Ramp(sdRDM.DataModel):
tag="time_unit",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/HPLC-specification"
)
_commit: Optional[str] = PrivateAttr(
default="e1922ec9220fac3332dbf180c6db0a5fe1eefd25"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
8 changes: 7 additions & 1 deletion chromatopy/core/signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from sdRDM.base.listplus import ListPlus
from sdRDM.base.utils import forge_signature
from sdRDM.tools.utils import elem2dict
from .signaltype import SignalType
from .peak import Peak
from .signaltype import SignalType


@forge_signature
Expand All @@ -36,6 +36,12 @@ class Signal(sdRDM.DataModel):
tag="type",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/HPLC-specification"
)
_commit: Optional[str] = PrivateAttr(
default="e1922ec9220fac3332dbf180c6db0a5fe1eefd25"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
6 changes: 6 additions & 0 deletions chromatopy/core/standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ class Standard(sdRDM.DataModel):
tag="factor",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/HPLC-specification"
)
_commit: Optional[str] = PrivateAttr(
default="e1922ec9220fac3332dbf180c6db0a5fe1eefd25"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
6 changes: 6 additions & 0 deletions chromatopy/core/tcddetector.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ class TCDDetector(Detector):
tag="lit_offset",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/HPLC-specification"
)
_commit: Optional[str] = PrivateAttr(
default="e1922ec9220fac3332dbf180c6db0a5fe1eefd25"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
6 changes: 6 additions & 0 deletions chromatopy/core/valve.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ class Valve(sdRDM.DataModel):
tag="inject_time",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/HPLC-specification"
)
_commit: Optional[str] = PrivateAttr(
default="e1922ec9220fac3332dbf180c6db0a5fe1eefd25"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down

0 comments on commit 117b9dc

Please sign in to comment.