computation-graph 60__tar.gz → 61__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-60 → computation_graph-61}/PKG-INFO +1 -1
- {computation_graph-60 → computation_graph-61}/computation_graph/graph_test.py +20 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/run.py +3 -2
- {computation_graph-60 → computation_graph-61}/computation_graph.egg-info/PKG-INFO +1 -1
- {computation_graph-60 → computation_graph-61}/setup.py +1 -1
- {computation_graph-60 → computation_graph-61}/LICENSE.md +0 -0
- {computation_graph-60 → computation_graph-61}/README.md +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/__init__.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/base_types.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/composers/__init__.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/composers/composers_test.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/composers/condition.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/composers/condition_test.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/composers/debug.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/composers/duplication.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/composers/lift.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/composers/logic.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/composers/memory.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/composers/memory_test.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/graph.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/graph_runners.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/legacy.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/signature.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/trace/__init__.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/trace/ascii.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/trace/graphviz.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/trace/graphviz_test.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/trace/mermaid.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph/trace/trace_utils.py +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph.egg-info/SOURCES.txt +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph.egg-info/dependency_links.txt +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph.egg-info/requires.txt +0 -0
- {computation_graph-60 → computation_graph-61}/computation_graph.egg-info/top_level.txt +0 -0
- {computation_graph-60 → computation_graph-61}/pyproject.toml +0 -0
- {computation_graph-60 → computation_graph-61}/setup.cfg +0 -0
|
@@ -245,6 +245,26 @@ async def test_raise_handled_from_async():
|
|
|
245
245
|
)
|
|
246
246
|
|
|
247
247
|
|
|
248
|
+
async def test_no_result_for_node_that_raised_handled_exception():
|
|
249
|
+
async def raises(x):
|
|
250
|
+
raise base_types.SkipComputationError
|
|
251
|
+
|
|
252
|
+
def sink(x):
|
|
253
|
+
return x
|
|
254
|
+
|
|
255
|
+
@graph.make_computation_node
|
|
256
|
+
def source():
|
|
257
|
+
return 4
|
|
258
|
+
|
|
259
|
+
res = await run.to_callable_strict(composers.compose_left(source, raises, sink))(
|
|
260
|
+
{}, {}
|
|
261
|
+
)
|
|
262
|
+
|
|
263
|
+
assert res[source] == 4
|
|
264
|
+
assert raises not in res
|
|
265
|
+
assert sink not in res
|
|
266
|
+
|
|
267
|
+
|
|
248
268
|
def test_raise_unhandled_exception():
|
|
249
269
|
class MyExceptionError(Exception):
|
|
250
270
|
...
|
|
@@ -242,7 +242,9 @@ def _to_callable_with_side_effect_for_single_and_multiple(
|
|
|
242
242
|
await asyncio.gather(*async_results[1], return_exceptions=True),
|
|
243
243
|
):
|
|
244
244
|
e = node_to_task_or_result[node].exception()
|
|
245
|
-
if
|
|
245
|
+
if not e:
|
|
246
|
+
all_results[node] = node_result
|
|
247
|
+
elif not isinstance(
|
|
246
248
|
e,
|
|
247
249
|
(
|
|
248
250
|
_DepNotFoundError,
|
|
@@ -251,7 +253,6 @@ def _to_callable_with_side_effect_for_single_and_multiple(
|
|
|
251
253
|
),
|
|
252
254
|
):
|
|
253
255
|
raise e from e
|
|
254
|
-
all_results[node] = node_result
|
|
255
256
|
|
|
256
257
|
return all_node_side_effects_on_edges(all_results)
|
|
257
258
|
|
|
@@ -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="61",
|
|
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-60 → computation_graph-61}/computation_graph.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|