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 codacy issues #7

Merged
merged 2 commits into from
Oct 19, 2023
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
3 changes: 3 additions & 0 deletions src/lava/proc/plateau/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ def __init__(self, proc_params):
self.vth_shift = 6
self.act_shift = 6
self.isthrscaled = False
self.effective_vth_dend = None
self.effective_vth_soma = None
self.s_out_buff = None

def _validate_var(self, var, var_type, min_val, max_val, var_name):
if type(var) is not var_type:
Expand Down
3 changes: 1 addition & 2 deletions tests/lava/proc/plateau/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import unittest
import numpy as np

from lava.proc.plateau.process import Plateau
from lava.proc.dense.process import Dense
from lava.proc.io.source import RingBuffer as Source
Expand Down Expand Up @@ -85,7 +84,7 @@ def test_up_dur(self):
dense_dend.a_out.connect(plat.a_dend_in)
# run model
test_up_state = []
for t in range(num_steps):
for _ in range(num_steps):
plat.run(RunSteps(1), Loihi2SimCfg(select_tag='fixed_pt'))
test_up_state.append(plat.up_state.get().astype(int)[0])
plat.stop()
Expand Down
1 change: 0 additions & 1 deletion tests/lava/proc/plateau/test_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


import unittest
import numpy as np
from lava.proc.plateau.process import Plateau


Expand Down