gemd 3.0.0__tar.gz → 3.1.0__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.
- {gemd-3.0.0 → gemd-3.1.0}/PKG-INFO +1 -1
- gemd-3.1.0/gemd/__version__.py +1 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/demo/cake.py +0 -2
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/template/process_template.py +19 -9
- {gemd-3.0.0 → gemd-3.1.0}/gemd.egg-info/PKG-INFO +1 -1
- {gemd-3.0.0 → gemd-3.1.0}/pyproject.toml +3 -3
- gemd-3.0.0/gemd/__version__.py +0 -1
- {gemd-3.0.0 → gemd-3.1.0}/LICENSE +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/README.md +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/__init__.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/builders/__init__.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/builders/impl.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/demo/__init__.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/demo/material_run_example.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/demo/measurement_example.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/demo/strehlow_and_cook.pif +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/demo/strehlow_and_cook.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/demo/strehlow_and_cook_small.pif +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/demo/table_example.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/demo/toothpick.jpg +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/__init__.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/attribute/__init__.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/attribute/base_attribute.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/attribute/condition.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/attribute/parameter.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/attribute/property.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/attribute/property_and_conditions.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/base_entity.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/bounds/__init__.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/bounds/base_bounds.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/bounds/categorical_bounds.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/bounds/composition_bounds.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/bounds/integer_bounds.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/bounds/molecular_structure_bounds.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/bounds/real_bounds.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/bounds_validation.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/case_insensitive_dict.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/dict_serializable.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/file_link.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/has_dependencies.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/link_by_uid.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/__init__.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/base_object.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/has_conditions.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/has_material.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/has_parameters.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/has_process.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/has_properties.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/has_quantities.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/has_source.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/has_spec.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/has_template.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/has_template_check_generator.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/ingredient_run.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/ingredient_spec.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/material_run.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/material_spec.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/measurement_run.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/measurement_spec.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/process_run.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/object/process_spec.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/setters.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/source/__init__.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/source/performed_source.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/template/__init__.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/template/attribute_template.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/template/base_template.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/template/condition_template.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/template/has_condition_templates.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/template/has_parameter_templates.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/template/has_property_templates.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/template/material_template.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/template/measurement_template.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/template/parameter_template.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/template/property_template.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/util.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/valid_list.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/value/__init__.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/value/base_value.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/value/categorical_value.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/value/composition_value.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/value/continuous_value.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/value/discrete_categorical.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/value/empirical_formula.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/value/inchi_value.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/value/integer_value.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/value/molecular_value.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/value/nominal_categorical.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/value/nominal_composition.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/value/nominal_integer.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/value/nominal_real.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/value/normal_real.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/value/smiles_value.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/value/uniform_integer.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/entity/value/uniform_real.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/enumeration/__init__.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/enumeration/base_enumeration.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/enumeration/origin.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/enumeration/sample_type.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/json/__init__.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/json/gemd_encoder.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/json/gemd_json.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/units/__init__.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/units/citrine_en.txt +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/units/constants_en.txt +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/units/impl.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/util/__init__.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd/util/impl.py +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd.egg-info/SOURCES.txt +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd.egg-info/dependency_links.txt +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd.egg-info/requires.txt +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/gemd.egg-info/top_level.txt +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/setup.cfg +0 -0
- {gemd-3.0.0 → gemd-3.1.0}/tests/test_examples.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "3.1.0"
|
|
@@ -195,12 +195,10 @@ def make_cake_templates():
|
|
|
195
195
|
tmpl["Procuring"] = ProcessTemplate(
|
|
196
196
|
name="Procuring",
|
|
197
197
|
description="Buyin' stuff",
|
|
198
|
-
allowed_names=[], # Takes no ingredients by definition
|
|
199
198
|
)
|
|
200
199
|
tmpl["Baking"] = ProcessTemplate(
|
|
201
200
|
name="Baking",
|
|
202
201
|
description="Using heat to promote chemical reactions in a material",
|
|
203
|
-
allowed_names=["batter"],
|
|
204
202
|
allowed_labels=["precursor"],
|
|
205
203
|
conditions=[(tmpl["Oven temperature"], RealBounds(0, 700, "degF"))],
|
|
206
204
|
parameters=[(tmpl["Oven temperature setting"], RealBounds(100, 550, "degF"))],
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"""A process template."""
|
|
2
2
|
|
|
3
|
+
from warnings import warn
|
|
4
|
+
|
|
5
|
+
from deprecation import DeprecatedWarning, deprecated
|
|
6
|
+
|
|
3
7
|
from gemd.entity.setters import validate_list
|
|
4
8
|
from gemd.entity.template.base_template import BaseTemplate
|
|
5
9
|
from gemd.entity.template.has_condition_templates import HasConditionTemplates
|
|
@@ -7,6 +11,8 @@ from gemd.entity.template.has_parameter_templates import HasParameterTemplates
|
|
|
7
11
|
|
|
8
12
|
__all__ = ["ProcessTemplate"]
|
|
9
13
|
|
|
14
|
+
_ALLOWED_NAMES_DETAILS = "GEMD Python discards the value, and the Citrine Platform ignores it."
|
|
15
|
+
|
|
10
16
|
|
|
11
17
|
class ProcessTemplate(
|
|
12
18
|
BaseTemplate, HasConditionTemplates, HasParameterTemplates, typ="process_template"
|
|
@@ -32,7 +38,9 @@ class ProcessTemplate(
|
|
|
32
38
|
are hierarchical strings that store information about an entity. They can be used
|
|
33
39
|
for filtering and discoverability.
|
|
34
40
|
allowed_names: List[str], optional
|
|
35
|
-
|
|
41
|
+
Deprecated as of 3.1.0, and will be removed in 4.0.0.
|
|
42
|
+
GEMD Python discards the value and leaves it out of the JSON.
|
|
43
|
+
Passing any list, even an empty one, emits a DeprecationWarning.
|
|
36
44
|
allowed_labels: List[str], optional
|
|
37
45
|
The set of labels that a process' ingredients are allowed to use in their labels field.
|
|
38
46
|
conditions: List[~gemd.entity.template.condition_template.ConditionTemplate] or \
|
|
@@ -66,23 +74,25 @@ class ProcessTemplate(
|
|
|
66
74
|
HasConditionTemplates.__init__(self, conditions)
|
|
67
75
|
HasParameterTemplates.__init__(self, parameters)
|
|
68
76
|
|
|
69
|
-
|
|
70
|
-
|
|
77
|
+
if allowed_names is not None:
|
|
78
|
+
warn(
|
|
79
|
+
DeprecatedWarning("allowed_names", "3.1.0", "4.0.0", _ALLOWED_NAMES_DETAILS),
|
|
80
|
+
stacklevel=2,
|
|
81
|
+
)
|
|
71
82
|
|
|
72
83
|
self._allowed_labels = None
|
|
73
84
|
self.allowed_labels = allowed_labels
|
|
74
85
|
|
|
75
86
|
@property
|
|
87
|
+
@deprecated(deprecated_in="3.1.0", removed_in="4.0.0", details=_ALLOWED_NAMES_DETAILS)
|
|
76
88
|
def allowed_names(self):
|
|
77
|
-
"""Get
|
|
78
|
-
return
|
|
89
|
+
"""Get an empty list."""
|
|
90
|
+
return []
|
|
79
91
|
|
|
80
92
|
@allowed_names.setter
|
|
93
|
+
@deprecated(deprecated_in="3.1.0", removed_in="4.0.0", details=_ALLOWED_NAMES_DETAILS)
|
|
81
94
|
def allowed_names(self, allowed_names):
|
|
82
|
-
|
|
83
|
-
self._allowed_names = validate_list([], str)
|
|
84
|
-
else:
|
|
85
|
-
self._allowed_names = validate_list(allowed_names, str)
|
|
95
|
+
pass
|
|
86
96
|
|
|
87
97
|
@property
|
|
88
98
|
def allowed_labels(self):
|
gemd-3.0.0/gemd/__version__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "3.0.0"
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|