process-bigraph 0.0.43__py3-none-any.whl
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/__init__.py +53 -0
- process_bigraph/composite.py +1551 -0
- process_bigraph/emitter.py +326 -0
- process_bigraph/experiments/__init__.py +0 -0
- process_bigraph/experiments/minimal_gillespie.py +207 -0
- process_bigraph/process_types.py +473 -0
- process_bigraph/processes/__init__.py +26 -0
- process_bigraph/processes/growth_division.py +167 -0
- process_bigraph/processes/parameter_scan.py +350 -0
- process_bigraph/tests.py +1330 -0
- process_bigraph/units.py +25 -0
- process_bigraph-0.0.43.dist-info/METADATA +65 -0
- process_bigraph-0.0.43.dist-info/RECORD +17 -0
- process_bigraph-0.0.43.dist-info/WHEEL +5 -0
- process_bigraph-0.0.43.dist-info/licenses/AUTHORS.md +6 -0
- process_bigraph-0.0.43.dist-info/licenses/LICENSE +201 -0
- process_bigraph-0.0.43.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import pprint
|
|
2
|
+
from bigraph_schema.registry import deep_merge, default
|
|
3
|
+
from process_bigraph.processes import register_processes
|
|
4
|
+
from process_bigraph.composite import Process, Step, Composite, interval_time_precision
|
|
5
|
+
from process_bigraph.emitter import Emitter, gather_emitter_results, generate_emitter_state, BASE_EMITTERS
|
|
6
|
+
from process_bigraph.process_types import ProcessTypes
|
|
7
|
+
from process_bigraph.package.discover import discover_packages
|
|
8
|
+
|
|
9
|
+
pretty = pprint.PrettyPrinter(indent=2)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def pp(x):
|
|
13
|
+
"""Print ``x`` in a pretty format."""
|
|
14
|
+
pretty.pprint(x)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def pf(x):
|
|
18
|
+
"""Format ``x`` for display."""
|
|
19
|
+
return pretty.pformat(x)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def register_types(core):
|
|
23
|
+
core.register('default 1', {
|
|
24
|
+
'_inherit': 'float',
|
|
25
|
+
'_default': 1.0})
|
|
26
|
+
|
|
27
|
+
core.register('species_dependent_process', {
|
|
28
|
+
'_inherit': ['process'],
|
|
29
|
+
'_inputs': {
|
|
30
|
+
'species': {
|
|
31
|
+
'_type': 'array',
|
|
32
|
+
'_data': 'float'}},
|
|
33
|
+
'_outputs': {
|
|
34
|
+
'species': {
|
|
35
|
+
'_type': 'array',
|
|
36
|
+
'_data': 'float'}}})
|
|
37
|
+
|
|
38
|
+
core.register('ode_config', {
|
|
39
|
+
'stoichiometry': {
|
|
40
|
+
'_type': 'array',
|
|
41
|
+
'_data': 'integer'},
|
|
42
|
+
'rates': 'map[float]',
|
|
43
|
+
'species': 'map[float]'})
|
|
44
|
+
|
|
45
|
+
register_processes(
|
|
46
|
+
core)
|
|
47
|
+
|
|
48
|
+
return core
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def allocate_core():
|
|
52
|
+
core = ProcessTypes()
|
|
53
|
+
return register_types(core)
|