process-bigraph 1.3.0__tar.gz → 1.3.1__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.
Files changed (35) hide show
  1. {process_bigraph-1.3.0/process_bigraph.egg-info → process_bigraph-1.3.1}/PKG-INFO +1 -1
  2. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/types/process.py +7 -3
  3. {process_bigraph-1.3.0 → process_bigraph-1.3.1/process_bigraph.egg-info}/PKG-INFO +1 -1
  4. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/pyproject.toml +1 -1
  5. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/AUTHORS.md +0 -0
  6. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/LICENSE +0 -0
  7. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/README.md +0 -0
  8. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/__init__.py +0 -0
  9. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/bundle.py +0 -0
  10. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/composite.py +0 -0
  11. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/emitter.py +0 -0
  12. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/experiments/__init__.py +0 -0
  13. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/experiments/minimal_gillespie.py +0 -0
  14. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/nextflow.py +0 -0
  15. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/plumbing.py +0 -0
  16. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/processes/__init__.py +0 -0
  17. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/processes/dynamic_structure.py +0 -0
  18. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/processes/examples.py +0 -0
  19. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/processes/growth_division.py +0 -0
  20. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/processes/math_expression.py +0 -0
  21. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/processes/parameter_scan.py +0 -0
  22. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/processes/reaction.py +0 -0
  23. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/protocols/__init__.py +0 -0
  24. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/protocols/parallel.py +0 -0
  25. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/protocols/rest.py +0 -0
  26. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/protocols/socket.py +0 -0
  27. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/run.py +0 -0
  28. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/run_step.py +0 -0
  29. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/types/__init__.py +0 -0
  30. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph/units.py +0 -0
  31. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph.egg-info/SOURCES.txt +0 -0
  32. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph.egg-info/dependency_links.txt +0 -0
  33. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph.egg-info/requires.txt +0 -0
  34. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/process_bigraph.egg-info/top_level.txt +0 -0
  35. {process_bigraph-1.3.0 → process_bigraph-1.3.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: process-bigraph
3
- Version: 1.3.0
3
+ Version: 1.3.1
4
4
  Summary: protocol and execution for compositional systems biology
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -323,10 +323,14 @@ def realize(core, schema: SharedProcess, state, path=()):
323
323
  if not hasattr(instance, 'core') or instance.core is None:
324
324
  instance.core = core
325
325
 
326
- # Restore process-internal RandomState if a checkpoint captured one.
326
+ # Restore process-internal RandomState if a checkpoint captured
327
+ # one. Cross-gen daughter loads should strip ``rng_state`` from
328
+ # the saved bundle before construction (so the daughter starts
329
+ # fresh from a freshly-seeded process); mid-tick checkpoints
330
+ # leave it in for bit-for-bit continuation.
327
331
  rng_state = state.get('rng_state')
328
- if rng_state and hasattr(instance, 'random_state') and isinstance(
329
- instance.random_state, np.random.RandomState):
332
+ if (rng_state and hasattr(instance, 'random_state')
333
+ and isinstance(instance.random_state, np.random.RandomState)):
330
334
  try:
331
335
  instance.random_state.set_state((
332
336
  rng_state['alg'],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: process-bigraph
3
- Version: 1.3.0
3
+ Version: 1.3.1
4
4
  Summary: protocol and execution for compositional systems biology
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "process-bigraph"
7
- version = "1.3.0"
7
+ version = "1.3.1"
8
8
  description = "protocol and execution for compositional systems biology"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
File without changes