Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B-ASIC - Better ASIC Toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computer Engineering
B-ASIC - Better ASIC Toolbox
Commits
d1240188
Commit
d1240188
authored
2 years ago
by
Oscar Gustafsson
Browse files
Options
Downloads
Patches
Plain Diff
Skip Graphviz checking
parent
01c65942
No related branches found
No related tags found
No related merge requests found
Pipeline
#87626
failed
2 years ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
b_asic/signal_flow_graph.py
+1
-11
1 addition, 11 deletions
b_asic/signal_flow_graph.py
with
1 addition
and
11 deletions
b_asic/signal_flow_graph.py
+
1
−
11
View file @
d1240188
...
@@ -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
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment