Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-tharayil committed Feb 27, 2024
1 parent b794902 commit a310e18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions neurodamus/core/stimuli.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,16 +437,16 @@ def __init__(self, cell_section, position=0.5, clamp_container=None,


# Check sif new conductanceSource mechanism is available
mt = h.MechanismType(1)
mname = h.ref('')
mt = Neuron.h.MechanismType(1)
mname = Neuron.h.ref('')
mList = []
for i in range(mt.count()):
mt.select(i)
mt.selected(mname)
mList.append(mname[0])

if 'conductanceSource' in mList
if 'conductanceSource' in mList:

self.clamp = Neuron.h.conductanceSource(position, sec=cell_section)

else:
Expand Down
4 changes: 2 additions & 2 deletions neurodamus/stimulus_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,8 +755,8 @@ def __init__(self, target, stim_info: dict, cell_manager):
# create single electrode voltage clamp at location

# Checks if new conductanceSource mechanism is available
mt = h.MechanismType(1)
mname = h.ref('')
mt = Nd.h.MechanismType(1)
mname = Nd.h.ref('')
mList = []
for i in range(mt.count()):
mt.select(i)
Expand Down

0 comments on commit a310e18

Please sign in to comment.