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.
Files changed (21) hide show
  1. {process-bigraph-0.0.26/process_bigraph.egg-info → process-bigraph-0.0.27}/PKG-INFO +1 -1
  2. {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/composite.py +18 -8
  3. {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/processes/growth_division.py +2 -2
  4. {process-bigraph-0.0.26 → process-bigraph-0.0.27/process_bigraph.egg-info}/PKG-INFO +1 -1
  5. {process-bigraph-0.0.26 → process-bigraph-0.0.27}/setup.py +1 -1
  6. {process-bigraph-0.0.26 → process-bigraph-0.0.27}/AUTHORS.md +0 -0
  7. {process-bigraph-0.0.26 → process-bigraph-0.0.27}/LICENSE +0 -0
  8. {process-bigraph-0.0.26 → process-bigraph-0.0.27}/README.md +0 -0
  9. {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/__init__.py +0 -0
  10. {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/experiments/__init__.py +0 -0
  11. {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/experiments/minimal_gillespie.py +0 -0
  12. {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/process_types.py +0 -0
  13. {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/processes/__init__.py +0 -0
  14. {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/processes/parameter_scan.py +0 -0
  15. {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/protocols.py +0 -0
  16. {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph/tests.py +0 -0
  17. {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph.egg-info/SOURCES.txt +0 -0
  18. {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph.egg-info/dependency_links.txt +0 -0
  19. {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph.egg-info/requires.txt +0 -0
  20. {process-bigraph-0.0.26 → process-bigraph-0.0.27}/process_bigraph.egg-info/top_level.txt +0 -0
  21. {process-bigraph-0.0.26 → process-bigraph-0.0.27}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: process-bigraph
3
- Version: 0.0.26
3
+ Version: 0.0.27
4
4
  Summary: UNKNOWN
5
5
  Home-page: https://github.com/vivarium-collective/process-bigraph
6
6
  Author: Ryan Spangler, Eran Agmon
@@ -872,8 +872,8 @@ class Composite(Process):
872
872
  print(f"Created new file: {filename}")
873
873
 
874
874
 
875
- def __repr__(self):
876
- return self.core.representation(self.composition)
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
- result = {}
1384
- for path in query:
1385
- element = get_path(self.history, path)
1386
- result = set_path(result, path, element)
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
- result = self.history
1398
+ results = self.history
1389
1399
 
1390
- return result
1400
+ return results
1391
1401
 
1392
1402
 
1393
1403
  BASE_EMITTERS = {
@@ -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': {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: process-bigraph
3
- Version: 0.0.26
3
+ Version: 0.0.27
4
4
  Summary: UNKNOWN
5
5
  Home-page: https://github.com/vivarium-collective/process-bigraph
6
6
  Author: Ryan Spangler, Eran Agmon
@@ -2,7 +2,7 @@ import re
2
2
  from setuptools import setup, find_packages
3
3
 
4
4
 
5
- VERSION = '0.0.26'
5
+ VERSION = '0.0.27'
6
6
 
7
7
 
8
8
  with open("README.md", "r") as readme: