From b9b46a699cdd98e0da11fd2c89164d23b9c9d745 Mon Sep 17 00:00:00 2001 From: szc321 Date: Tue, 20 Jun 2023 13:59:30 +0800 Subject: [PATCH] fix static code analysis Signed-off-by: szc321 --- src/lava/magma/runtime/message_infrastructure/pypychannel.py | 2 +- src/lava/proc/dense/models.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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..db90e7546 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,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 @@ -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