computation-graph 57__tar.gz → 58__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.
- {computation_graph-57 → computation_graph-58}/PKG-INFO +1 -1
- {computation_graph-57 → computation_graph-58}/computation_graph/graph_test.py +11 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/run.py +7 -1
- {computation_graph-57 → computation_graph-58}/computation_graph.egg-info/PKG-INFO +1 -1
- {computation_graph-57 → computation_graph-58}/setup.py +1 -1
- {computation_graph-57 → computation_graph-58}/LICENSE.md +0 -0
- {computation_graph-57 → computation_graph-58}/README.md +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/__init__.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/base_types.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/composers/__init__.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/composers/composers_test.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/composers/condition.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/composers/condition_test.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/composers/debug.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/composers/duplication.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/composers/lift.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/composers/logic.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/composers/memory.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/composers/memory_test.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/graph.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/graph_runners.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/legacy.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/signature.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/trace/__init__.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/trace/ascii.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/trace/graphviz.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/trace/graphviz_test.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/trace/mermaid.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph/trace/trace_utils.py +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph.egg-info/SOURCES.txt +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph.egg-info/dependency_links.txt +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph.egg-info/requires.txt +0 -0
- {computation_graph-57 → computation_graph-58}/computation_graph.egg-info/top_level.txt +0 -0
- {computation_graph-57 → computation_graph-58}/pyproject.toml +0 -0
- {computation_graph-57 → computation_graph-58}/setup.cfg +0 -0
|
@@ -233,6 +233,17 @@ def test_first():
|
|
|
233
233
|
)
|
|
234
234
|
|
|
235
235
|
|
|
236
|
+
def test_raise_unhandled_exception():
|
|
237
|
+
class MyExceptionError(Exception):
|
|
238
|
+
...
|
|
239
|
+
|
|
240
|
+
def raises():
|
|
241
|
+
raise MyExceptionError("BAD")
|
|
242
|
+
|
|
243
|
+
with pytest.raises(MyExceptionError, match="BAD"):
|
|
244
|
+
graph_runners.nullary_infer_sink(composers.make_first(raises, lambda: 1))
|
|
245
|
+
|
|
246
|
+
|
|
236
247
|
def test_first_all_unactionable():
|
|
237
248
|
def raises():
|
|
238
249
|
raise base_types.SkipComputationError
|
|
@@ -71,7 +71,13 @@ _toposort_nodes: Callable[
|
|
|
71
71
|
opt_gamla.compose_left(opt_gamla.map(base_types.edge_destination), set)
|
|
72
72
|
),
|
|
73
73
|
_transpose_graph,
|
|
74
|
-
|
|
74
|
+
toposort.toposort,
|
|
75
|
+
# Make async functions come first in each layer so they'll start running before all the sync functions
|
|
76
|
+
opt_gamla.maptuple(
|
|
77
|
+
gamla.sort_by(lambda n: 0 if inspect.iscoroutinefunction(n.func) else 1)
|
|
78
|
+
),
|
|
79
|
+
gamla.concat,
|
|
80
|
+
tuple,
|
|
75
81
|
)
|
|
76
82
|
|
|
77
83
|
|
|
@@ -7,7 +7,7 @@ with open("README.md", "r") as fh:
|
|
|
7
7
|
setuptools.setup(
|
|
8
8
|
name="computation-graph",
|
|
9
9
|
python_requires=">=3",
|
|
10
|
-
version="
|
|
10
|
+
version="58",
|
|
11
11
|
long_description=_LONG_DESCRIPTION,
|
|
12
12
|
long_description_content_type="text/markdown",
|
|
13
13
|
packages=setuptools.find_namespace_packages(),
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{computation_graph-57 → computation_graph-58}/computation_graph.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|