We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f22e7f commit cd0dff3Copy full SHA for cd0dff3
graphtik/network.py
@@ -668,14 +668,16 @@ def prune(
668
inputs = iset(_yield_datanodes(dag)) - outputs
669
else:
670
# Ignore `inputs` not in the graph.
671
- inputs = dag.nodes & inputs
+ inputs = iset(inputs) & dag.nodes
672
673
## Scream on unknown `outputs`.
674
#
675
if outputs:
676
unknown_outputs = iset(outputs) - dag.nodes
677
if unknown_outputs:
678
- raise ValueError(f"Unknown output nodes: {list(unknown_outputs)}")
+ raise ValueError(
679
+ f"Unknown output nodes: {list(unknown_outputs)}\n {self}"
680
+ )
681
682
assert inputs is not None and not isinstance(inputs, str)
683
# but outputs may still be null.
0 commit comments