bigraph-schema 0.0.62__tar.gz → 0.0.63__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.
Potentially problematic release.
This version of bigraph-schema might be problematic. Click here for more details.
- {bigraph-schema-0.0.62/bigraph_schema.egg-info → bigraph-schema-0.0.63}/PKG-INFO +1 -1
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/bigraph_schema/edge.py +19 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63/bigraph_schema.egg-info}/PKG-INFO +1 -1
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/pyproject.toml +6 -1
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/setup.py +1 -1
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/.github/workflows/notebook_to_html.yml +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/.github/workflows/pytest.yml +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/.gitignore +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/AUTHORS.md +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/CLA.md +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/CODE_OF_CONDUCT.md +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/CONTRIBUTING.md +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/LICENSE +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/README.md +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/bigraph_schema/__init__.py +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/bigraph_schema/parse.py +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/bigraph_schema/protocols.py +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/bigraph_schema/registry.py +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/bigraph_schema/tests.py +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/bigraph_schema/type_functions.py +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/bigraph_schema/type_system.py +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/bigraph_schema/type_system_adjunct.py +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/bigraph_schema/units.py +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/bigraph_schema/utilities.py +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/bigraph_schema.egg-info/SOURCES.txt +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/bigraph_schema.egg-info/dependency_links.txt +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/bigraph_schema.egg-info/requires.txt +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/bigraph_schema.egg-info/top_level.txt +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/notebooks/core.ipynb +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/notebooks/demo.ipynb +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/notebooks/images/place-link.png +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/notebooks/images/reaction-after.png +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/notebooks/images/reaction-before.png +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/notebooks/images/redex-reactum.png +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/pytest.ini +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/release.sh +0 -0
- {bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/setup.cfg +0 -0
|
@@ -6,6 +6,12 @@ Edge
|
|
|
6
6
|
Base class for all edges in the bigraph schema.
|
|
7
7
|
"""
|
|
8
8
|
|
|
9
|
+
def default_wires(schema):
|
|
10
|
+
return {
|
|
11
|
+
key: [key]
|
|
12
|
+
for key in schema}
|
|
13
|
+
|
|
14
|
+
|
|
9
15
|
class Edge:
|
|
10
16
|
config_schema = {}
|
|
11
17
|
|
|
@@ -52,8 +58,21 @@ class Edge:
|
|
|
52
58
|
return {}
|
|
53
59
|
|
|
54
60
|
|
|
61
|
+
def default_inputs(self):
|
|
62
|
+
schema = self.inputs()
|
|
63
|
+
wires = default_wires(schema)
|
|
64
|
+
return wires
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def default_outputs(self):
|
|
68
|
+
schema = self.outputs()
|
|
69
|
+
wires = default_wires(schema)
|
|
70
|
+
return wires
|
|
71
|
+
|
|
72
|
+
|
|
55
73
|
def interface(self):
|
|
56
74
|
"""Returns the schema for this type"""
|
|
57
75
|
return {
|
|
58
76
|
'inputs': self.inputs(),
|
|
59
77
|
'outputs': self.outputs()}
|
|
78
|
+
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "bigraph-schema"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.63"
|
|
4
4
|
description = "A serializable type schema for compositional systems biology"
|
|
5
5
|
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.7"
|
|
7
|
+
authors = [
|
|
8
|
+
{name = "Eran Agmon"},
|
|
9
|
+
{name = "Ryan Spangler"}
|
|
10
|
+
]
|
|
6
11
|
dependencies = [
|
|
7
12
|
"fire",
|
|
8
13
|
"numpy",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bigraph-schema-0.0.62 → bigraph-schema-0.0.63}/bigraph_schema.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|