Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix static code analysis #720

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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