Skip to content

Commit

Permalink
fix static code analysis
Browse files Browse the repository at this point in the history
Signed-off-by: szc321 <[email protected]>
  • Loading branch information
szc321 committed Jun 20, 2023
1 parent 559f9b0 commit b9b46a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def _req_callback(self, req):
not_empty = self.probe()
self._queue.put_nowait(0)
if self.observer and not not_empty:
self.observer()
self.observer() # pylint: disable=E1102
except EOFError:
pass

Expand Down
5 changes: 3 additions & 2 deletions src/lava/proc/dense/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ def run_spk(self):
self.recv_traces(s_in)


# pylint: disable=E0102
class AbstractPyDelayDenseModel(PyLoihiProcessModel):
"""Abstract Conn Process with Dense synaptic connections which incorporates
delays into the Conn Process.
Expand Down Expand Up @@ -412,7 +413,7 @@ def update_act(self, s_in):
@implements(proc=DelayDense, protocol=LoihiProtocol)
@requires(CPU)
@tag("floating_pt")
class PyDelayDenseModelFloat(AbstractPyDelayDenseModel):
class PyDelayDenseModelFloat(AbstractPyDelayDenseModel): # pylint: disable=E0102
"""Implementation of Conn Process with Dense synaptic connections in
floating point precision. This short and simple ProcessModel can be used
for quick algorithmic prototyping, without engaging with the nuances of a
Expand Down Expand Up @@ -445,7 +446,7 @@ def run_spk(self):
@implements(proc=DelayDense, protocol=LoihiProtocol)
@requires(CPU)
@tag("bit_accurate_loihi", "fixed_pt")
class PyDelayDenseModelBitAcc(AbstractPyDelayDenseModel):
class PyDelayDenseModelBitAcc(AbstractPyDelayDenseModel): # pylint: disable=E0102
"""Implementation of Conn Process with Dense synaptic connections that is
bit-accurate with Loihi's hardware implementation of Dense, which means,
it mimics Loihi behaviour bit-by-bit. DelayDense incorporates delays into
Expand Down

0 comments on commit b9b46a6

Please sign in to comment.