process-bigraph 0.0.25__tar.gz → 0.0.26__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.25/process_bigraph.egg-info → process-bigraph-0.0.26}/PKG-INFO +1 -1
- {process-bigraph-0.0.25 → process-bigraph-0.0.26}/process_bigraph/composite.py +19 -10
- {process-bigraph-0.0.25 → process-bigraph-0.0.26}/process_bigraph/process_types.py +5 -3
- {process-bigraph-0.0.25 → process-bigraph-0.0.26}/process_bigraph/tests.py +2 -0
- {process-bigraph-0.0.25 → process-bigraph-0.0.26/process_bigraph.egg-info}/PKG-INFO +1 -1
- {process-bigraph-0.0.25 → process-bigraph-0.0.26}/setup.py +1 -1
- {process-bigraph-0.0.25 → process-bigraph-0.0.26}/AUTHORS.md +0 -0
- {process-bigraph-0.0.25 → process-bigraph-0.0.26}/LICENSE +0 -0
- {process-bigraph-0.0.25 → process-bigraph-0.0.26}/README.md +0 -0
- {process-bigraph-0.0.25 → process-bigraph-0.0.26}/process_bigraph/__init__.py +0 -0
- {process-bigraph-0.0.25 → process-bigraph-0.0.26}/process_bigraph/experiments/__init__.py +0 -0
- {process-bigraph-0.0.25 → process-bigraph-0.0.26}/process_bigraph/experiments/minimal_gillespie.py +0 -0
- {process-bigraph-0.0.25 → process-bigraph-0.0.26}/process_bigraph/processes/__init__.py +0 -0
- {process-bigraph-0.0.25 → process-bigraph-0.0.26}/process_bigraph/processes/growth_division.py +0 -0
- {process-bigraph-0.0.25 → process-bigraph-0.0.26}/process_bigraph/processes/parameter_scan.py +0 -0
- {process-bigraph-0.0.25 → process-bigraph-0.0.26}/process_bigraph/protocols.py +0 -0
- {process-bigraph-0.0.25 → process-bigraph-0.0.26}/process_bigraph.egg-info/SOURCES.txt +0 -0
- {process-bigraph-0.0.25 → process-bigraph-0.0.26}/process_bigraph.egg-info/dependency_links.txt +0 -0
- {process-bigraph-0.0.25 → process-bigraph-0.0.26}/process_bigraph.egg-info/requires.txt +0 -0
- {process-bigraph-0.0.25 → process-bigraph-0.0.26}/process_bigraph.egg-info/top_level.txt +0 -0
- {process-bigraph-0.0.25 → process-bigraph-0.0.26}/setup.cfg +0 -0
|
@@ -336,7 +336,7 @@ def deserialize_process(schema, encoded, core):
|
|
|
336
336
|
if not encoded:
|
|
337
337
|
deserialized = core.default(schema)
|
|
338
338
|
else:
|
|
339
|
-
deserialized = encoded
|
|
339
|
+
deserialized = encoded
|
|
340
340
|
|
|
341
341
|
if not deserialized.get('address'):
|
|
342
342
|
return deserialized
|
|
@@ -377,8 +377,10 @@ def deserialize_process(schema, encoded, core):
|
|
|
377
377
|
|
|
378
378
|
deserialized['config'] = config
|
|
379
379
|
deserialized['interval'] = interval
|
|
380
|
-
deserialized['_inputs'] =
|
|
381
|
-
|
|
380
|
+
deserialized['_inputs'] = copy.deepcopy(
|
|
381
|
+
deserialized['instance'].inputs())
|
|
382
|
+
deserialized['_outputs'] = copy.deepcopy(
|
|
383
|
+
deserialized['instance'].outputs())
|
|
382
384
|
|
|
383
385
|
return deserialized
|
|
384
386
|
|
|
@@ -387,7 +389,7 @@ def deserialize_step(schema, encoded, core):
|
|
|
387
389
|
if not encoded:
|
|
388
390
|
deserialized = core.default(schema)
|
|
389
391
|
else:
|
|
390
|
-
deserialized =
|
|
392
|
+
deserialized = copy.deepcopy(encoded)
|
|
391
393
|
|
|
392
394
|
if not deserialized['address']:
|
|
393
395
|
return deserialized
|
|
@@ -414,8 +416,10 @@ def deserialize_step(schema, encoded, core):
|
|
|
414
416
|
deserialized['instance'] = process
|
|
415
417
|
|
|
416
418
|
deserialized['config'] = config
|
|
417
|
-
deserialized['_inputs'] =
|
|
418
|
-
|
|
419
|
+
deserialized['_inputs'] = copy.deepcopy(
|
|
420
|
+
deserialized['instance'].inputs())
|
|
421
|
+
deserialized['_outputs'] = copy.deepcopy(
|
|
422
|
+
deserialized['instance'].outputs())
|
|
419
423
|
|
|
420
424
|
return deserialized
|
|
421
425
|
|
|
@@ -484,7 +488,7 @@ class ProcessTypes(TypeSystem):
|
|
|
484
488
|
self.process_registry = Registry()
|
|
485
489
|
self.protocol_registry = Registry()
|
|
486
490
|
|
|
487
|
-
self.
|
|
491
|
+
self.update_types(PROCESS_TYPES)
|
|
488
492
|
self.register_protocols(BASE_PROTOCOLS)
|
|
489
493
|
self.register_processes(BASE_EMITTERS)
|
|
490
494
|
|
|
@@ -526,8 +530,8 @@ class ProcessTypes(TypeSystem):
|
|
|
526
530
|
if not initial_state:
|
|
527
531
|
return initial_state
|
|
528
532
|
|
|
529
|
-
input_ports = get_path(schema, path + ('_inputs',))
|
|
530
|
-
output_ports = get_path(schema, path + ('_outputs',))
|
|
533
|
+
input_ports = copy.deepcopy(get_path(schema, path + ('_inputs',)))
|
|
534
|
+
output_ports = copy.deepcopy(get_path(schema, path + ('_outputs',)))
|
|
531
535
|
ports = {
|
|
532
536
|
'_inputs': input_ports,
|
|
533
537
|
'_outputs': output_ports}
|
|
@@ -784,8 +788,9 @@ class Composite(Process):
|
|
|
784
788
|
# self.state)
|
|
785
789
|
|
|
786
790
|
self.process_schema = {}
|
|
791
|
+
|
|
787
792
|
for port in ['inputs', 'outputs']:
|
|
788
|
-
self.process_schema[port]
|
|
793
|
+
self.process_schema[port] = self.core.wire_schema(
|
|
789
794
|
self.composition,
|
|
790
795
|
self.bridge[port])
|
|
791
796
|
|
|
@@ -867,6 +872,10 @@ class Composite(Process):
|
|
|
867
872
|
print(f"Created new file: {filename}")
|
|
868
873
|
|
|
869
874
|
|
|
875
|
+
def __repr__(self):
|
|
876
|
+
return self.core.representation(self.composition)
|
|
877
|
+
|
|
878
|
+
|
|
870
879
|
def reset_step_state(self, step_paths):
|
|
871
880
|
self.trigger_state = build_trigger_state(
|
|
872
881
|
self.node_dependencies)
|
|
@@ -98,7 +98,7 @@ def deserialize_process(schema, encoded, core):
|
|
|
98
98
|
if not encoded:
|
|
99
99
|
deserialized = core.default(schema)
|
|
100
100
|
else:
|
|
101
|
-
deserialized = encoded
|
|
101
|
+
deserialized = encoded
|
|
102
102
|
|
|
103
103
|
if not deserialized.get('address'):
|
|
104
104
|
return deserialized
|
|
@@ -139,8 +139,10 @@ def deserialize_process(schema, encoded, core):
|
|
|
139
139
|
|
|
140
140
|
deserialized['config'] = config
|
|
141
141
|
deserialized['interval'] = interval
|
|
142
|
-
deserialized['_inputs'] =
|
|
143
|
-
|
|
142
|
+
deserialized['_inputs'] = copy.deepcopy(
|
|
143
|
+
deserialized['instance'].inputs())
|
|
144
|
+
deserialized['_outputs'] = copy.deepcopy(
|
|
145
|
+
deserialized['instance'].outputs())
|
|
144
146
|
|
|
145
147
|
return deserialized
|
|
146
148
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{process-bigraph-0.0.25 → process-bigraph-0.0.26}/process_bigraph/experiments/minimal_gillespie.py
RENAMED
|
File without changes
|
|
File without changes
|
{process-bigraph-0.0.25 → process-bigraph-0.0.26}/process_bigraph/processes/growth_division.py
RENAMED
|
File without changes
|
{process-bigraph-0.0.25 → process-bigraph-0.0.26}/process_bigraph/processes/parameter_scan.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{process-bigraph-0.0.25 → process-bigraph-0.0.26}/process_bigraph.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|