Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjorthmedh committed Nov 28, 2024
1 parent 2bb5650 commit 7d1922c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions snudda/simulate/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2169,10 +2169,11 @@ def post_initialisation_modifications(self):
for sec in n.icell.all:
for seg in sec:
channel = getattr(seg, ion_channel, None)
setattr(channel, "gbar", getattr(channel, "gbar") * channel_mod_factor)
if channel is not None:
setattr(channel, "gbar", getattr(channel, "gbar") * channel_mod_factor)
except:
import traceback
self.write_log(traceback.format_exc())
self.write_log(traceback.format_exc(), is_error=True)
import pdb
pdb.set_trace()

Expand Down

0 comments on commit 7d1922c

Please sign in to comment.