process-bigraph 0.0.30__tar.gz → 0.0.32__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.
- {process-bigraph-0.0.30/process_bigraph.egg-info → process-bigraph-0.0.32}/PKG-INFO +1 -1
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/process_bigraph/composite.py +6 -2
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/process_bigraph/process_types.py +6 -8
- {process-bigraph-0.0.30 → process-bigraph-0.0.32/process_bigraph.egg-info}/PKG-INFO +1 -1
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/setup.py +1 -1
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/.github/workflows/notebook_to_html.yml +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/.github/workflows/pytest.yml +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/.gitignore +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/AUTHORS.md +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/CLA.md +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/CODE_OF_CONDUCT.md +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/CONTRIBUTING.md +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/LICENSE +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/README.md +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/doc/_static/process-bigraph.png +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/notebooks/process-bigraphs.ipynb +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/notebooks/visualize_processes.ipynb +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/process_bigraph/__init__.py +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/process_bigraph/emitter.py +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/process_bigraph/experiments/__init__.py +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/process_bigraph/experiments/minimal_gillespie.py +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/process_bigraph/processes/__init__.py +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/process_bigraph/processes/growth_division.py +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/process_bigraph/processes/parameter_scan.py +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/process_bigraph/protocols.py +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/process_bigraph/tests.py +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/process_bigraph.egg-info/SOURCES.txt +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/process_bigraph.egg-info/dependency_links.txt +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/process_bigraph.egg-info/requires.txt +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/process_bigraph.egg-info/top_level.txt +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/pytest.ini +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/release.sh +0 -0
- {process-bigraph-0.0.30 → process-bigraph-0.0.32}/setup.cfg +0 -0
|
@@ -450,10 +450,14 @@ class Composite(Process):
|
|
|
450
450
|
raise Exception(
|
|
451
451
|
f'initial state from edge does not match initial state from other edges:\n{path}\n{edge}\n{edge_state}')
|
|
452
452
|
|
|
453
|
-
self.
|
|
454
|
-
self.
|
|
453
|
+
self.merge(
|
|
454
|
+
self.composition,
|
|
455
455
|
edge_state)
|
|
456
456
|
|
|
457
|
+
# self.state = deep_merge(
|
|
458
|
+
# self.state,
|
|
459
|
+
# edge_state)
|
|
460
|
+
|
|
457
461
|
# TODO: call validate on this composite, not just check
|
|
458
462
|
# assert self.core.validate(
|
|
459
463
|
# self.composition,
|
|
@@ -112,10 +112,8 @@ def deserialize_process(schema, encoded, core):
|
|
|
112
112
|
encoded = encoded or {}
|
|
113
113
|
schema = schema or {}
|
|
114
114
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
else:
|
|
118
|
-
deserialized = encoded
|
|
115
|
+
default = core.default(schema)
|
|
116
|
+
deserialized = deep_merge(default, encoded)
|
|
119
117
|
|
|
120
118
|
if not deserialized.get('address'):
|
|
121
119
|
return deserialized
|
|
@@ -153,6 +151,8 @@ def deserialize_process(schema, encoded, core):
|
|
|
153
151
|
core=core)
|
|
154
152
|
|
|
155
153
|
deserialized['instance'] = process
|
|
154
|
+
else:
|
|
155
|
+
process = deserialized['instance']
|
|
156
156
|
|
|
157
157
|
# TODO: this mutating the original value directly into
|
|
158
158
|
# the return value is weird (?)
|
|
@@ -181,10 +181,8 @@ def deserialize_process(schema, encoded, core):
|
|
|
181
181
|
|
|
182
182
|
|
|
183
183
|
def deserialize_step(schema, encoded, core):
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
else:
|
|
187
|
-
deserialized = copy.deepcopy(encoded)
|
|
184
|
+
default = core.default(schema)
|
|
185
|
+
deserialized = deep_merge(default, encoded)
|
|
188
186
|
|
|
189
187
|
if not deserialized['address']:
|
|
190
188
|
return deserialized
|
|
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
|
{process-bigraph-0.0.30 → process-bigraph-0.0.32}/process_bigraph/experiments/minimal_gillespie.py
RENAMED
|
File without changes
|
|
File without changes
|
{process-bigraph-0.0.30 → process-bigraph-0.0.32}/process_bigraph/processes/growth_division.py
RENAMED
|
File without changes
|
{process-bigraph-0.0.30 → process-bigraph-0.0.32}/process_bigraph/processes/parameter_scan.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{process-bigraph-0.0.30 → process-bigraph-0.0.32}/process_bigraph.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|