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
Merge requests
!243
Remove unused arguments and parameters
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Remove unused arguments and parameters
sfgguicleanup
into
master
Overview
0
Commits
1
Pipelines
2
Changes
5
Merged
Oscar Gustafsson
requested to merge
sfgguicleanup
into
master
2 years ago
Overview
0
Commits
1
Pipelines
2
Changes
5
Expand
0
0
Merge request reports
Viewing commit
a56cb4e2
Show latest version
5 files
+
112
−
120
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
a56cb4e2
Remove unused arguments and parameters
· a56cb4e2
Oscar Gustafsson
authored
2 years ago
b_asic/GUI/arrow.py
+
12
−
10
Options
@@ -46,8 +46,8 @@ class Arrow(QGraphicsPathItem):
self
.
signal
.
remove_destination
()
self
.
signal
.
remove_source
()
self
.
_window
.
scene
.
removeItem
(
self
)
if
self
in
self
.
_window
.
signalL
ist
:
self
.
_window
.
signalL
ist
.
remove
(
self
)
if
self
in
self
.
_window
.
_arrow_l
ist
:
self
.
_window
.
_arrow_l
ist
.
remove
(
self
)
if
self
in
self
.
_window
.
signalPortDict
:
for
port1
,
port2
in
self
.
_window
.
signalPortDict
[
self
]:
@@ -57,18 +57,20 @@ class Arrow(QGraphicsPathItem):
)
in
self
.
_window
.
portDict
.
items
():
if
(
port1
in
operation_ports
or
port2
in
operation_ports
)
and
operation
in
self
.
_window
.
op
ToSFG
:
)
and
operation
in
self
.
_window
.
_
op
eration_to_sfg
:
self
.
_window
.
logger
.
info
(
"
Operation detected in existing SFG, removing SFG
"
"
with name:
"
f
"
{
self
.
_window
.
op
ToSFG
[
operation
].
name
}
.
"
f
"
{
self
.
_window
.
_
op
eration_to_sfg
[
operation
].
name
}
.
"
)
del
self
.
_window
.
sfg_dict
[
self
.
_window
.
opToSFG
[
operation
].
name
]
self
.
_window
.
opToSFG
=
{
op
:
self
.
_window
.
opToSFG
[
op
]
for
op
in
self
.
_window
.
opToSFG
if
self
.
_window
.
opToSFG
[
op
]
is
not
self
.
_window
.
opToSFG
[
operation
]
del
self
.
_window
.
sfg_dict
[
self
.
_window
.
_operation_to_sfg
[
operation
].
name
]
self
.
_window
.
_operation_to_sfg
=
{
op
:
self
.
_window
.
_operation_to_sfg
[
op
]
for
op
in
self
.
_window
.
_operation_to_sfg
if
self
.
_window
.
_operation_to_sfg
[
op
]
is
not
self
.
_window
.
_operation_to_sfg
[
operation
]
}
del
self
.
_window
.
signalPortDict
[
self
]
Loading