Skip to content

Commit

Permalink
Flake 8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ntolley committed Mar 27, 2021
1 parent 07e1169 commit 8855eba
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions hnn_core/lfp.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
with ion channels in some or all compartments.
Last updated 12-March-2016
Developed by :
Developed by :
Harilal Parasuram & Shyam Diwakar
Computational Neuroscience & Neurophysiology Lab, School of Biotechnology,
Amrita University, India.
Email: harilalp@am.amrita.edu; shyam@amrita.edu
www.amrita.edu/compneuro
www.amrita.edu/compneuro
translated to Python and modified to use use_fast_imem by Sam Neymotin
based on mhines code
Expand Down Expand Up @@ -64,7 +64,7 @@ class LFPElectrode:

def __init__(self, coord, sigma=3.0, pc=None, method='psa'):

# see http://jn.physiology.org/content/104/6/3388.long shows table of
# see http://jn.physiology.org/content/104/6/3388.long shows table of
# values with conductivity
self.sigma = sigma
self.coord = coord
Expand Down Expand Up @@ -188,7 +188,9 @@ def LFPinit(self):
def callback(self):
# print('In lfp callback - pc.id = ',self.pc.id(),' t=',self.pc.t(0))
self.imem_ptrvec.gather(self.imem_vec)
# s = pc.allreduce(imem_vec.sum(), 1) #verify sum i_membrane_ == stimulus

# verify sum i_membrane_ == stimulus
# s = pc.allreduce(imem_vec.sum(), 1)
# if rank == 0: print pc.t(0), s

# sum up the weighted i_membrane_. Result in vx
Expand Down

0 comments on commit 8855eba

Please sign in to comment.