process-bigraph 1.2.2__tar.gz → 1.2.3__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-1.2.2/process_bigraph.egg-info → process_bigraph-1.2.3}/PKG-INFO +1 -1
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/composite.py +16 -11
- {process_bigraph-1.2.2 → process_bigraph-1.2.3/process_bigraph.egg-info}/PKG-INFO +1 -1
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/pyproject.toml +1 -1
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/AUTHORS.md +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/LICENSE +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/README.md +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/__init__.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/bundle.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/emitter.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/experiments/__init__.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/experiments/minimal_gillespie.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/nextflow.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/plumbing.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/processes/__init__.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/processes/dynamic_structure.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/processes/examples.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/processes/growth_division.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/processes/math_expression.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/processes/parameter_scan.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/processes/reaction.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/protocols/__init__.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/protocols/parallel.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/protocols/rest.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/protocols/socket.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/run.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/run_step.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/types/__init__.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/types/process.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/units.py +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph.egg-info/SOURCES.txt +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph.egg-info/dependency_links.txt +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph.egg-info/requires.txt +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph.egg-info/top_level.txt +0 -0
- {process_bigraph-1.2.2 → process_bigraph-1.2.3}/setup.cfg +0 -0
|
@@ -1454,11 +1454,11 @@ class Composite(Process):
|
|
|
1454
1454
|
- self.process_paths
|
|
1455
1455
|
- self.step_paths
|
|
1456
1456
|
"""
|
|
1457
|
-
# Structural change incoming — drop
|
|
1457
|
+
# Structural change incoming — drop schema-derived caches:
|
|
1458
1458
|
# ``apply(dict)`` mutates schemas in place for ``_divide``
|
|
1459
|
-
# sentinels, so
|
|
1460
|
-
#
|
|
1461
|
-
self.core.
|
|
1459
|
+
# sentinels, so the promote() memo may now key off stale
|
|
1460
|
+
# schema layouts.
|
|
1461
|
+
self.core.invalidate_caches()
|
|
1462
1462
|
self.process_paths = find_instance_paths(state, 'process_bigraph.composite.Process')
|
|
1463
1463
|
if hasattr(self, 'step_paths'):
|
|
1464
1464
|
previous_step_paths = self.step_paths.keys()
|
|
@@ -1581,14 +1581,14 @@ class Composite(Process):
|
|
|
1581
1581
|
- ``Divided``: drop the mother's entries, scan each daughter
|
|
1582
1582
|
subtree.
|
|
1583
1583
|
|
|
1584
|
-
|
|
1584
|
+
Schema-derived caches are invalidated unconditionally because
|
|
1585
1585
|
``apply(dict)``'s ``_divide`` branch mutates schemas in place.
|
|
1586
1586
|
|
|
1587
1587
|
Step network rebuild is conditional on step_paths actually
|
|
1588
1588
|
changing — value-only structural events that don't add/remove
|
|
1589
1589
|
any Step instances skip the rebuild.
|
|
1590
1590
|
"""
|
|
1591
|
-
self.core.
|
|
1591
|
+
self.core.invalidate_caches()
|
|
1592
1592
|
|
|
1593
1593
|
previous_step_paths = (set(self.step_paths.keys())
|
|
1594
1594
|
if hasattr(self, 'step_paths') else set())
|
|
@@ -2695,12 +2695,17 @@ class Composite(Process):
|
|
|
2695
2695
|
combined_update,
|
|
2696
2696
|
update_has_structural=had_structural_sentinels,
|
|
2697
2697
|
events=structural_events)
|
|
2698
|
-
# For structural sentinels, apply
|
|
2699
|
-
# apply_schema in place
|
|
2700
|
-
#
|
|
2701
|
-
#
|
|
2698
|
+
# For structural sentinels, apply mutates the
|
|
2699
|
+
# access-normalized form of ``apply_schema`` in place
|
|
2700
|
+
# (e.g. ``_divide`` pops the mother key and inserts
|
|
2701
|
+
# daughter keys in a dict subschema). ``apply_schema``
|
|
2702
|
+
# itself is the un-normalized input — it does NOT see
|
|
2703
|
+
# those mutations. Pull the cached normalized form
|
|
2704
|
+
# via ``access`` (cache hit since ``core.apply`` just
|
|
2705
|
+
# populated it) so ``self.schema`` reflects the post-
|
|
2706
|
+
# divide structure for downstream consumers.
|
|
2702
2707
|
if had_structural_sentinels:
|
|
2703
|
-
self.schema = apply_schema
|
|
2708
|
+
self.schema = self.core.access(apply_schema)
|
|
2704
2709
|
|
|
2705
2710
|
if merges:
|
|
2706
2711
|
had_structural_changes = True
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/experiments/minimal_gillespie.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/processes/dynamic_structure.py
RENAMED
|
File without changes
|
|
File without changes
|
{process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/processes/growth_division.py
RENAMED
|
File without changes
|
{process_bigraph-1.2.2 → process_bigraph-1.2.3}/process_bigraph/processes/math_expression.py
RENAMED
|
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-1.2.2 → process_bigraph-1.2.3}/process_bigraph.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|