Skip to content

Commit

Permalink
fix static code analysis (#720)
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 db6f186
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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
3 changes: 3 additions & 0 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,6 +413,7 @@ def update_act(self, s_in):
@implements(proc=DelayDense, protocol=LoihiProtocol)
@requires(CPU)
@tag("floating_pt")
# pylint: disable=E0102
class PyDelayDenseModelFloat(AbstractPyDelayDenseModel):
"""Implementation of Conn Process with Dense synaptic connections in
floating point precision. This short and simple ProcessModel can be used
Expand Down Expand Up @@ -445,6 +447,7 @@ def run_spk(self):
@implements(proc=DelayDense, protocol=LoihiProtocol)
@requires(CPU)
@tag("bit_accurate_loihi", "fixed_pt")
# pylint: disable=E0102
class PyDelayDenseModelBitAcc(AbstractPyDelayDenseModel):
"""Implementation of Conn Process with Dense synaptic connections that is
bit-accurate with Loihi's hardware implementation of Dense, which means,
Expand Down

0 comments on commit db6f186

Please sign in to comment.