process-bigraph 0.0.26__tar.gz → 0.0.27__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.26/process_bigraph.egg-info → process-bigraph-0.0.27}/PKG-INFO +1 -1
- {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/composite.py +18 -8
- {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/processes/growth_division.py +2 -2
- {process-bigraph-0.0.26 → process-bigraph-0.0.27/process_bigraph.egg-info}/PKG-INFO +1 -1
- {process-bigraph-0.0.26 → process-bigraph-0.0.27}/setup.py +1 -1
- {process-bigraph-0.0.26 → process-bigraph-0.0.27}/AUTHORS.md +0 -0
- {process-bigraph-0.0.26 → process-bigraph-0.0.27}/LICENSE +0 -0
- {process-bigraph-0.0.26 → process-bigraph-0.0.27}/README.md +0 -0
- {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/__init__.py +0 -0
- {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/experiments/__init__.py +0 -0
- {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/experiments/minimal_gillespie.py +0 -0
- {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/process_types.py +0 -0
- {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/processes/__init__.py +0 -0
- {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/processes/parameter_scan.py +0 -0
- {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/protocols.py +0 -0
- {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/tests.py +0 -0
- {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph.egg-info/SOURCES.txt +0 -0
- {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph.egg-info/dependency_links.txt +0 -0
- {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph.egg-info/requires.txt +0 -0
- {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph.egg-info/top_level.txt +0 -0
- {process-bigraph-0.0.26 → process-bigraph-0.0.27}/setup.cfg +0 -0
|
@@ -872,8 +872,8 @@ class Composite(Process):
|
|
|
872
872
|
print(f"Created new file: {filename}")
|
|
873
873
|
|
|
874
874
|
|
|
875
|
-
def __repr__(self):
|
|
876
|
-
|
|
875
|
+
# def __repr__(self):
|
|
876
|
+
# return self.core.representation(self.composition)
|
|
877
877
|
|
|
878
878
|
|
|
879
879
|
def reset_step_state(self, step_paths):
|
|
@@ -1379,15 +1379,25 @@ class RAMEmitter(Emitter):
|
|
|
1379
1379
|
|
|
1380
1380
|
|
|
1381
1381
|
def query(self, query=None):
|
|
1382
|
+
"""
|
|
1383
|
+
Query the history of the emitter.
|
|
1384
|
+
:param query: a list of paths to query from the history. If None, the entire history is returned.
|
|
1385
|
+
:return: results of the query in a list
|
|
1386
|
+
"""
|
|
1382
1387
|
if isinstance(query, list):
|
|
1383
|
-
|
|
1384
|
-
for
|
|
1385
|
-
|
|
1386
|
-
|
|
1388
|
+
results = []
|
|
1389
|
+
for t in self.history:
|
|
1390
|
+
result = {}
|
|
1391
|
+
for path in query:
|
|
1392
|
+
element = get_path(t, path)
|
|
1393
|
+
result = set_path(result, path, element)
|
|
1394
|
+
results.append(result)
|
|
1395
|
+
# element = get_path(self.history, path)
|
|
1396
|
+
# result = set_path(result, path, element)
|
|
1387
1397
|
else:
|
|
1388
|
-
|
|
1398
|
+
results = self.history
|
|
1389
1399
|
|
|
1390
|
-
return
|
|
1400
|
+
return results
|
|
1391
1401
|
|
|
1392
1402
|
|
|
1393
1403
|
BASE_EMITTERS = {
|
{process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/processes/growth_division.py
RENAMED
|
@@ -131,7 +131,7 @@ def grow_divide_agent(config=None, state=None, path=None):
|
|
|
131
131
|
|
|
132
132
|
grow_divide_state = {
|
|
133
133
|
'grow': {
|
|
134
|
-
'_type': 'process'
|
|
134
|
+
'_type': 'edge', # TODO -- should support 'process'
|
|
135
135
|
'address': 'local:grow',
|
|
136
136
|
'config': grow_config,
|
|
137
137
|
'inputs': {
|
|
@@ -140,7 +140,7 @@ def grow_divide_agent(config=None, state=None, path=None):
|
|
|
140
140
|
'mass': ['mass']}},
|
|
141
141
|
|
|
142
142
|
'divide': {
|
|
143
|
-
'_type': 'process'
|
|
143
|
+
'_type': 'edge', # TODO -- should support 'process'
|
|
144
144
|
'address': 'local:divide',
|
|
145
145
|
'config': divide_config,
|
|
146
146
|
'inputs': {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/experiments/minimal_gillespie.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/processes/parameter_scan.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|