Skip to content

Commit

Permalink
update core with new sdrdm
Browse files Browse the repository at this point in the history
  • Loading branch information
samirdarouich committed May 13, 2024
1 parent f700c12 commit 2db1d88
Show file tree
Hide file tree
Showing 16 changed files with 68 additions and 40,250 deletions.
Binary file modified .DS_Store
Binary file not shown.
65 changes: 55 additions & 10 deletions FAIRFlowChemistry.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions FAIRFlowChemistry/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

__URL__ = "https://github.com/FAIRChemistry/FAIRFlowChemistry"
__COMMIT__ = "f4222f6744222333280cdf737a377645a4c02321"
__URL__ = ""
__COMMIT__ = ""
6 changes: 0 additions & 6 deletions FAIRFlowChemistry/core/calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@ class Calibration(sdRDM.DataModel, search_mode="unordered"):
tag="degree",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/FAIRFlowChemistry"
)
_commit: Optional[str] = PrivateAttr(
default="f4222f6744222333280cdf737a377645a4c02321"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
6 changes: 0 additions & 6 deletions FAIRFlowChemistry/core/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,6 @@ class Component(sdRDM.DataModel, search_mode="unordered"):
tag="connections",
json_schema_extra=dict(multiple=True),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/FAIRFlowChemistry"
)
_commit: Optional[str] = PrivateAttr(
default="f4222f6744222333280cdf737a377645a4c02321"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
6 changes: 0 additions & 6 deletions FAIRFlowChemistry/core/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ class Data(sdRDM.DataModel, search_mode="unordered"):
tag="unit",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/FAIRFlowChemistry"
)
_commit: Optional[str] = PrivateAttr(
default="f4222f6744222333280cdf737a377645a4c02321"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
16 changes: 2 additions & 14 deletions FAIRFlowChemistry/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
from sdRDM.base.listplus import ListPlus
from sdRDM.base.utils import forge_signature
from sdRDM.tools.utils import elem2dict
from .experiment import Experiment
from .measurement import Measurement
from .plantsetup import PlantSetup
from .experiment import Experiment
from .speciesdata import SpeciesData
from .plantsetup import PlantSetup


@forge_signature
Expand All @@ -34,12 +34,6 @@ class GeneralInformation(sdRDM.DataModel, search_mode="unordered"):
purpose: Optional[str] = element(
default=None, tag="purpose", json_schema_extra=dict()
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/FAIRFlowChemistry"
)
_commit: Optional[str] = PrivateAttr(
default="f4222f6744222333280cdf737a377645a4c02321"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down Expand Up @@ -81,12 +75,6 @@ class Dataset(sdRDM.DataModel, search_mode="unordered"):
tag="experiments",
json_schema_extra=dict(multiple=True),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/FAIRFlowChemistry"
)
_commit: Optional[str] = PrivateAttr(
default="f4222f6744222333280cdf737a377645a4c02321"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
14 changes: 4 additions & 10 deletions FAIRFlowChemistry/core/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
from sdRDM.base.listplus import ListPlus
from sdRDM.base.utils import forge_signature
from sdRDM.tools.utils import elem2dict
from .measurementtype import MeasurementType
from .component import Component
from .datatype import DataType
from .quantity import Quantity
from .calibration import Calibration
from .plantsetup import PlantSetup
from .quantity import Quantity
from .measurement import Measurement
from .datatype import DataType
from .metadata import Metadata
from .measurementtype import MeasurementType
from .data import Data
from .speciesdata import SpeciesData
from .plantsetup import PlantSetup


@forge_signature
Expand Down Expand Up @@ -55,12 +55,6 @@ class Experiment(sdRDM.DataModel, search_mode="unordered"):
tag="species_data",
json_schema_extra=dict(multiple=True),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/FAIRFlowChemistry"
)
_commit: Optional[str] = PrivateAttr(
default="f4222f6744222333280cdf737a377645a4c02321"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
6 changes: 0 additions & 6 deletions FAIRFlowChemistry/core/genericattibute.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ class GenericAttibute(sdRDM.DataModel, search_mode="unordered"):
tag="units_uri",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/FAIRFlowChemistry"
)
_commit: Optional[str] = PrivateAttr(
default="f4222f6744222333280cdf737a377645a4c02321"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
10 changes: 2 additions & 8 deletions FAIRFlowChemistry/core/measurement.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
from sdRDM.base.datatypes import Unit
from sdRDM.tools.utils import elem2dict
from datetime import datetime as Datetime
from .measurementtype import MeasurementType
from .component import Component
from .datatype import DataType
from .quantity import Quantity
from .datatype import DataType
from .metadata import Metadata
from .measurementtype import MeasurementType
from .data import Data


Expand Down Expand Up @@ -56,12 +56,6 @@ class Measurement(sdRDM.DataModel, search_mode="unordered"):
tag="source",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/FAIRFlowChemistry"
)
_commit: Optional[str] = PrivateAttr(
default="f4222f6744222333280cdf737a377645a4c02321"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
6 changes: 0 additions & 6 deletions FAIRFlowChemistry/core/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ class Metadata(sdRDM.DataModel, search_mode="unordered"):
tag="description",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/FAIRFlowChemistry"
)
_commit: Optional[str] = PrivateAttr(
default="f4222f6744222333280cdf737a377645a4c02321"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
6 changes: 0 additions & 6 deletions FAIRFlowChemistry/core/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ class Parameter(sdRDM.DataModel, search_mode="unordered"):
tag="unit",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/FAIRFlowChemistry"
)
_commit: Optional[str] = PrivateAttr(
default="f4222f6744222333280cdf737a377645a4c02321"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
6 changes: 0 additions & 6 deletions FAIRFlowChemistry/core/plantsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ class PlantSetup(sdRDM.DataModel, search_mode="unordered"):
tag="output",
json_schema_extra=dict(multiple=True),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/FAIRFlowChemistry"
)
_commit: Optional[str] = PrivateAttr(
default="f4222f6744222333280cdf737a377645a4c02321"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
6 changes: 0 additions & 6 deletions FAIRFlowChemistry/core/speciesdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ class SpeciesData(sdRDM.DataModel, search_mode="unordered"):
tag="faraday_efficiency",
json_schema_extra=dict(),
)
_repo: Optional[str] = PrivateAttr(
default="https://github.com/FAIRChemistry/FAIRFlowChemistry"
)
_commit: Optional[str] = PrivateAttr(
default="f4222f6744222333280cdf737a377645a4c02321"
)
_raw_xml_data: Dict = PrivateAttr(default_factory=dict)

@model_validator(mode="after")
Expand Down
5 changes: 0 additions & 5 deletions FAIRFlowChemistry/tools/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,4 @@ def DEXPI2sdRDM(filepath: Path|str ):
component.connections.extend(connection)
component.connections.remove(component.component_id)

<<<<<<< Updated upstream
#for component in components:
# print(component.component_id, component.connections)
=======
>>>>>>> Stashed changes
return PlantSetup(components=components)
Loading

0 comments on commit 2db1d88

Please sign in to comment.