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
547ff079
Commit
547ff079
authored
5 years ago
by
Ivar Härnqvist
Browse files
Options
Downloads
Patches
Plain Diff
fix use of british english (neighbours -> neighbors)
parent
8188390e
No related branches found
No related tags found
1 merge request
!12
Misc. fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
b_asic/operation.py
+8
-8
8 additions, 8 deletions
b_asic/operation.py
with
8 additions
and
8 deletions
b_asic/operation.py
+
8
−
8
View file @
547ff079
...
...
@@ -86,9 +86,9 @@ class Operation(GraphComponent):
@property
@abstractmethod
def
neighbo
u
rs
(
self
)
->
"
List[Operation]
"
:
def
neighbors
(
self
)
->
"
List[Operation]
"
:
"""
Return all operations that are connected by signals to this operation.
If no neighbo
u
rs are found this returns an empty list
If no neighbors are found this returns an empty list
"""
raise
NotImplementedError
...
...
@@ -175,17 +175,17 @@ class AbstractOperation(Operation, AbstractGraphComponent):
return
[
self
]
@property
def
neighbo
u
rs
(
self
)
->
List
[
Operation
]:
neighbo
u
rs
:
List
[
Operation
]
=
[]
def
neighbors
(
self
)
->
List
[
Operation
]:
neighbors
:
List
[
Operation
]
=
[]
for
port
in
self
.
_input_ports
:
for
signal
in
port
.
signals
:
neighbo
u
rs
.
append
(
signal
.
source
.
operation
)
neighbors
.
append
(
signal
.
source
.
operation
)
for
port
in
self
.
_output_ports
:
for
signal
in
port
.
signals
:
neighbo
u
rs
.
append
(
signal
.
destination
.
operation
)
neighbors
.
append
(
signal
.
destination
.
operation
)
return
neighbo
u
rs
return
neighbors
def
traverse
(
self
)
->
Operation
:
"""
Traverse the operation tree and return a generator with start point in the operation.
"""
...
...
@@ -198,7 +198,7 @@ class AbstractOperation(Operation, AbstractGraphComponent):
while
queue
:
operation
=
queue
.
popleft
()
yield
operation
for
n_operation
in
operation
.
neighbo
u
rs
:
for
n_operation
in
operation
.
neighbors
:
if
n_operation
not
in
visited
:
visited
.
add
(
n_operation
)
queue
.
append
(
n_operation
)
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