PyThermoLinkDB 1.4.6__tar.gz → 1.4.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/PKG-INFO +1 -1
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/PyThermoLinkDB.egg-info/SOURCES.txt +1 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/config/settings.py +1 -1
- pythermolinkdb-1.4.7/pyThermoLinkDB/models/ref.py +1 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/thermo/data_source.py +2 -9
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/thermo/equation_source.py +2 -9
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/thermo/equation_sources.py +2 -9
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/thermo/main.py +4 -25
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/thermo/source.py +5 -26
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyproject.toml +1 -1
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/LICENSE +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/MANIFEST.in +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/README.md +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/__init__.py +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/app.py +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/config/__init__.py +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/config/constants.py +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/config/deps.py +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/docs/__init__.py +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/docs/thermodbhub.py +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/docs/thermolink.py +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/docs/utils.py +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/models/__init__.py +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/models/component_models.py +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/models/source.py +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/thermo/__init__.py +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/utils/__init__.py +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/utils/convertor.py +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/utils/loader.py +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/pyThermoLinkDB/utils/properties.py +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/requirements.txt +0 -0
- {pythermolinkdb-1.4.6 → pythermolinkdb-1.4.7}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyThermoLinkDB
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.7
|
|
4
4
|
Summary: PyThermoLinkDB is a Python package providing a robust and efficient interface between `PyThermoDB` and other applications.
|
|
5
5
|
Author-email: Sina Gilassi <sina.gilassi@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -15,6 +15,7 @@ pyThermoLinkDB/docs/thermolink.py
|
|
|
15
15
|
pyThermoLinkDB/docs/utils.py
|
|
16
16
|
pyThermoLinkDB/models/__init__.py
|
|
17
17
|
pyThermoLinkDB/models/component_models.py
|
|
18
|
+
pyThermoLinkDB/models/ref.py
|
|
18
19
|
pyThermoLinkDB/models/source.py
|
|
19
20
|
pyThermoLinkDB/thermo/__init__.py
|
|
20
21
|
pyThermoLinkDB/thermo/data_source.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# import libs
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# import libs
|
|
2
2
|
import logging
|
|
3
3
|
from typing import Dict, Literal, Any, Optional, List
|
|
4
|
-
from pythermodb_settings.models import Component
|
|
4
|
+
from pythermodb_settings.models import Component, ComponentKey
|
|
5
5
|
from pythermodb_settings.utils import set_component_id
|
|
6
6
|
# local
|
|
7
7
|
from ..thermo import Source
|
|
@@ -49,14 +49,7 @@ class DataSourceCore:
|
|
|
49
49
|
self,
|
|
50
50
|
component: Component,
|
|
51
51
|
source: Source,
|
|
52
|
-
component_key:
|
|
53
|
-
'Name-State',
|
|
54
|
-
'Formula-State',
|
|
55
|
-
'Name',
|
|
56
|
-
'Formula',
|
|
57
|
-
'Name-Formula-State',
|
|
58
|
-
'Formula-Name-State'
|
|
59
|
-
] = 'Name-State',
|
|
52
|
+
component_key: ComponentKey = 'Name-State',
|
|
60
53
|
) -> None:
|
|
61
54
|
"""
|
|
62
55
|
Initialize DataSource with a component and source.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# import libs
|
|
2
2
|
import logging
|
|
3
3
|
from typing import Dict, Literal, Any, Optional, List, Callable
|
|
4
|
-
from pythermodb_settings.models import Component
|
|
4
|
+
from pythermodb_settings.models import Component, ComponentKey
|
|
5
5
|
from pyThermoDB.core import TableEquation
|
|
6
6
|
from pythermodb_settings.utils import set_component_id
|
|
7
7
|
from pyThermoDB.models import EquationResult
|
|
@@ -74,14 +74,7 @@ class EquationSourceCore:
|
|
|
74
74
|
prop_name: str,
|
|
75
75
|
component: Component,
|
|
76
76
|
source: Source,
|
|
77
|
-
component_key:
|
|
78
|
-
'Name-State',
|
|
79
|
-
'Formula-State',
|
|
80
|
-
'Name',
|
|
81
|
-
'Formula',
|
|
82
|
-
'Name-Formula-State',
|
|
83
|
-
'Formula-Name-State'
|
|
84
|
-
] = 'Name-State',
|
|
77
|
+
component_key: ComponentKey = 'Name-State',
|
|
85
78
|
) -> None:
|
|
86
79
|
"""
|
|
87
80
|
Initialize EquationSourceCore with a property name, component, and source.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# import libs
|
|
2
2
|
import logging
|
|
3
3
|
from typing import Dict, Literal, Any, Optional, List
|
|
4
|
-
from pythermodb_settings.models import Component
|
|
4
|
+
from pythermodb_settings.models import Component, ComponentKey
|
|
5
5
|
from pyThermoDB.core import TableEquation
|
|
6
6
|
from pythermodb_settings.utils import set_component_id
|
|
7
7
|
# local
|
|
@@ -51,14 +51,7 @@ class EquationSourcesCore:
|
|
|
51
51
|
self,
|
|
52
52
|
component: Component,
|
|
53
53
|
source: Source,
|
|
54
|
-
component_key:
|
|
55
|
-
'Name-State',
|
|
56
|
-
'Formula-State',
|
|
57
|
-
'Name',
|
|
58
|
-
'Formula',
|
|
59
|
-
'Name-Formula-State',
|
|
60
|
-
'Formula-Name-State'
|
|
61
|
-
] = 'Name-State',
|
|
54
|
+
component_key: ComponentKey = 'Name-State',
|
|
62
55
|
) -> None:
|
|
63
56
|
"""
|
|
64
57
|
Initialize EquationSource with a component and source.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import logging
|
|
3
3
|
from typing import Literal, Optional, Tuple
|
|
4
4
|
from pyThermoLinkDB.models import ModelSource
|
|
5
|
-
from pythermodb_settings.models import Component
|
|
5
|
+
from pythermodb_settings.models import Component, ComponentKey
|
|
6
6
|
from pythermodb_settings.utils import set_component_id
|
|
7
7
|
# local
|
|
8
8
|
from ..thermo import Source
|
|
@@ -19,14 +19,7 @@ logger = logging.getLogger(__name__)
|
|
|
19
19
|
def mkeqs(
|
|
20
20
|
component: Component,
|
|
21
21
|
model_source: ModelSource,
|
|
22
|
-
component_key:
|
|
23
|
-
'Name-State',
|
|
24
|
-
'Formula-State',
|
|
25
|
-
'Name',
|
|
26
|
-
'Formula',
|
|
27
|
-
'Name-Formula-State',
|
|
28
|
-
'Formula-Name-State'
|
|
29
|
-
] = 'Name-State',
|
|
22
|
+
component_key: ComponentKey = 'Name-State',
|
|
30
23
|
) -> Optional[EquationSourcesCore]:
|
|
31
24
|
"""
|
|
32
25
|
Make an equation source core for a given property and component.
|
|
@@ -73,14 +66,7 @@ def mkeq(
|
|
|
73
66
|
name: str,
|
|
74
67
|
component: Component,
|
|
75
68
|
model_source: ModelSource,
|
|
76
|
-
component_key:
|
|
77
|
-
'Name-State',
|
|
78
|
-
'Formula-State',
|
|
79
|
-
'Name',
|
|
80
|
-
'Formula',
|
|
81
|
-
'Name-Formula-State',
|
|
82
|
-
'Formula-Name-State'
|
|
83
|
-
] = 'Name-State',
|
|
69
|
+
component_key: ComponentKey = 'Name-State',
|
|
84
70
|
) -> Optional[EquationSourceCore]:
|
|
85
71
|
"""
|
|
86
72
|
Make an equation source core for a given property and component.
|
|
@@ -155,14 +141,7 @@ def mkeq(
|
|
|
155
141
|
def mkdt(
|
|
156
142
|
component: Component,
|
|
157
143
|
model_source: ModelSource,
|
|
158
|
-
component_key:
|
|
159
|
-
'Name-State',
|
|
160
|
-
'Formula-State',
|
|
161
|
-
'Name',
|
|
162
|
-
'Formula',
|
|
163
|
-
'Name-Formula-State',
|
|
164
|
-
'Formula-Name-State'
|
|
165
|
-
] = 'Name-State',
|
|
144
|
+
component_key: ComponentKey = 'Name-State',
|
|
166
145
|
) -> Optional[DataSourceCore]:
|
|
167
146
|
"""
|
|
168
147
|
Make a data source core for a given component.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# import libs
|
|
2
2
|
import logging
|
|
3
|
-
from typing import List, Dict, Optional, Any, Tuple
|
|
3
|
+
from typing import List, Dict, Optional, Any, Tuple
|
|
4
4
|
from pyThermoDB.core import TableEquation
|
|
5
5
|
from pyThermoDB.models import EquationResult
|
|
6
|
-
from pythermodb_settings.models import Component
|
|
6
|
+
from pythermodb_settings.models import Component, ComponentKey
|
|
7
7
|
from pythermodb_settings.utils import set_component_id
|
|
8
8
|
from pyThermoLinkDB.models import ModelSource
|
|
9
9
|
# local
|
|
@@ -481,14 +481,7 @@ class Source:
|
|
|
481
481
|
self,
|
|
482
482
|
components: List[Component],
|
|
483
483
|
prop_name: str,
|
|
484
|
-
component_key:
|
|
485
|
-
'Name-State',
|
|
486
|
-
'Formula-State',
|
|
487
|
-
'Name',
|
|
488
|
-
'Formula',
|
|
489
|
-
'Name-Formula-State',
|
|
490
|
-
'Formula-Name-State'
|
|
491
|
-
] = 'Name-State',
|
|
484
|
+
component_key: ComponentKey = 'Name-State',
|
|
492
485
|
**kwargs
|
|
493
486
|
) -> Optional[Dict[str, ComponentEquationSource]]:
|
|
494
487
|
'''
|
|
@@ -623,14 +616,7 @@ class Source:
|
|
|
623
616
|
components: List[Component],
|
|
624
617
|
eq_src_comp: Dict[str, ComponentEquationSource],
|
|
625
618
|
args_values: Optional[Dict[str, float]] = None,
|
|
626
|
-
component_key:
|
|
627
|
-
'Name-State',
|
|
628
|
-
'Formula-State',
|
|
629
|
-
'Name',
|
|
630
|
-
'Formula',
|
|
631
|
-
'Name-Formula-State',
|
|
632
|
-
'Formula-Name-State'
|
|
633
|
-
] = 'Name-State',
|
|
619
|
+
component_key: ComponentKey = 'Name-State',
|
|
634
620
|
**kwargs
|
|
635
621
|
) -> Optional[Tuple[List[float], Dict[str, Any]]]:
|
|
636
622
|
'''
|
|
@@ -768,14 +754,7 @@ class Source:
|
|
|
768
754
|
self,
|
|
769
755
|
component_id: str,
|
|
770
756
|
components: List[Component],
|
|
771
|
-
component_key:
|
|
772
|
-
'Name-State',
|
|
773
|
-
'Formula-State',
|
|
774
|
-
'Name',
|
|
775
|
-
'Formula',
|
|
776
|
-
'Name-Formula-State',
|
|
777
|
-
'Formula-Name-State'
|
|
778
|
-
] = 'Name-State',
|
|
757
|
+
component_key: ComponentKey = 'Name-State',
|
|
779
758
|
) -> Optional[Dict[str, Any]]:
|
|
780
759
|
"""
|
|
781
760
|
Get the component data from the datasource.
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "PyThermoLinkDB"
|
|
7
|
-
version = "1.4.
|
|
7
|
+
version = "1.4.7"
|
|
8
8
|
description = "PyThermoLinkDB is a Python package providing a robust and efficient interface between `PyThermoDB` and other applications."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|