Skip to content

Commit

Permalink
Remove whitespace fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus G K Williams <Marcus G K Williams [email protected]>
  • Loading branch information
Marcus G K Williams authored and Marcus G K Williams committed Jul 25, 2024
1 parent 3f49e28 commit d8e4501
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/lava/magma/compiler/channel_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def from_proc_groups(self,
return channel_map

@classmethod
def _get_port_pairs_from_proc_groups(
self, proc_groups: ty.List[ProcGroup]):
def _get_port_pairs_from_proc_groups(self,

Check notice on line 99 in src/lava/magma/compiler/channel_map.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/lava/magma/compiler/channel_map.py#L99

Class method _get_port_pairs_from_proc_groups should have 'cls' as first argument
proc_groups: ty.List[ProcGroup]):
"""Loop over processes connectivity and get all connected port pairs."""
processes = list(itertools.chain.from_iterable(proc_groups))
port_pairs = []
Expand All @@ -117,8 +117,9 @@ def _is_leaf_process_port(dst_port, processes):
dst_process = dst_port.process
return True if dst_process in processes else False

def set_port_initializer(
self, port: AbstractPort, port_initializer: PortInitializer
def set_port_initializer(self,
port: AbstractPort,
port_initializer: PortInitializer
):
if port in self._initializers_lookup.keys():
raise AssertionError(
Expand Down
2 changes: 1 addition & 1 deletion tests/lava/magma/compiler/test_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def create_mock_proc_groups() -> ty.List[ProcGroup]:
py_pg2_p1 = Mock(spec_set=AbstractProcess())
py_pg2_p2 = Mock(spec_set=AbstractProcess())

py_pg1_p1.configure_mock(name='py_pg1_p1')
py_pg1_p1.configure_mock(name='py_pg1_p1')
py_pg2_p1.configure_mock(name='py_pg2_p1')
py_pg2_p2.configure_mock(name='py_pg2_p2')

Expand Down

0 comments on commit d8e4501

Please sign in to comment.