Skip to content

Commit

Permalink
Merge pull request #7 from mgkwill/plateau-neuron
Browse files Browse the repository at this point in the history
Fix codacy issues
  • Loading branch information
kds300 authored Oct 19, 2023
2 parents c469bd8 + e8a8215 commit 6ccbf74
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
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

0 comments on commit 6ccbf74

Please sign in to comment.