From db6f18677ac346a4564149edb68906faf148cfc6 Mon Sep 17 00:00:00 2001 From: szc321 <108719242+szc321@users.noreply.github.com> Date: Tue, 20 Jun 2023 14:22:25 +0800 Subject: [PATCH] fix static code analysis (#720) Signed-off-by: szc321 --- src/lava/magma/runtime/message_infrastructure/pypychannel.py | 2 +- src/lava/proc/dense/models.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lava/magma/runtime/message_infrastructure/pypychannel.py b/src/lava/magma/runtime/message_infrastructure/pypychannel.py index 1d5bd8601..847cd1bd9 100644 --- a/src/lava/magma/runtime/message_infrastructure/pypychannel.py +++ b/src/lava/magma/runtime/message_infrastructure/pypychannel.py @@ -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 diff --git a/src/lava/proc/dense/models.py b/src/lava/proc/dense/models.py index 01754fc29..94ff5484d 100644 --- a/src/lava/proc/dense/models.py +++ b/src/lava/proc/dense/models.py @@ -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. @@ -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 @@ -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,