Skip to content

Commit 3e8994a

Browse files
authored
Fix to allow cubed to work without diagnostics (#856)
1 parent 2c720d3 commit 3e8994a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cubed/core/plan.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import networkx as nx
1414

1515
from cubed.core.optimization import is_input_array, multiple_inputs_optimize_dag
16-
from cubed.diagnostics.colors import APRICOT, LAVENDER, RED
1716
from cubed.primitive.blockwise import BlockwiseSpec
1817
from cubed.primitive.types import PrimitiveOperation
1918
from cubed.runtime.pipeline import visit_node_generations
@@ -612,6 +611,8 @@ def visualize(
612611
show_hidden=False,
613612
engine: Literal["cytoscape", "graphviz"] | None = None,
614613
):
614+
from cubed.diagnostics.colors import APRICOT, LAVENDER, RED
615+
615616
if engine == "cytoscape":
616617
return self.visualize_cytoscape(
617618
filename,

0 commit comments

Comments
 (0)