Skip to content
Snippets Groups Projects
Commit d1240188 authored by Oscar Gustafsson's avatar Oscar Gustafsson :bicyclist:
Browse files

Skip Graphviz checking

parent 01c65942
No related branches found
No related tags found
No related merge requests found
Pipeline #87626 failed
...@@ -21,8 +21,6 @@ from typing import ( ...@@ -21,8 +21,6 @@ from typing import (
) )
from graphviz import Digraph from graphviz import Digraph
from graphviz.backend import ENGINES as GRAPHVIZ_ENGINES
from graphviz.backend import FORMATS as GRAPHVIZ_FORMATS
from b_asic.graph_component import ( from b_asic.graph_component import (
GraphComponent, GraphComponent,
...@@ -1207,9 +1205,7 @@ class SFG(AbstractOperation): ...@@ -1207,9 +1205,7 @@ class SFG(AbstractOperation):
""" """
dg = Digraph() dg = Digraph()
dg.attr(rankdir="LR") dg.attr(rankdir="LR")
if engine: dg.engine = 'dot' if engine is None else engine
assert engine in GRAPHVIZ_ENGINES, "Unknown layout engine"
dg.engine = engine
for op in self._components_by_id.values(): for op in self._components_by_id.values():
if isinstance(op, Signal): if isinstance(op, Signal):
if show_id: if show_id:
...@@ -1253,10 +1249,4 @@ class SFG(AbstractOperation): ...@@ -1253,10 +1249,4 @@ class SFG(AbstractOperation):
""" """
dg = self.sfg(show_id=show_id) dg = self.sfg(show_id=show_id)
if format:
assert format in GRAPHVIZ_FORMATS, "Unknown file format"
dg.format = format
if engine:
assert engine in GRAPHVIZ_ENGINES, "Unknown layout engine"
dg.engine = engine
dg.view() dg.view()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment