Skip to content

Commit

Permalink
Use Neuron.h instead of Nd.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jorblancoa committed Feb 29, 2024
1 parent d477fed commit 4572e1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions neurodamus/core/stimuli.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,7 @@ class _DynamicClamp:
def __init__(self, cell_section, position=0.5, clamp_container=None,
stim_vec_mode=True, time_vec=None, stim_vec=None,
reversal=0.0, **clamp_params):

# Checks if new conductanceSource mechanism is available
# Checks if new conductanceSource mechanism is available
if hasattr(Neuron.h, "conductanceSource"):
self.clamp = Neuron.h.conductanceSource(position, sec=cell_section)
else:
Expand Down
2 changes: 1 addition & 1 deletion neurodamus/stimulus_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ def __init__(self, target, stim_info: dict, cell_manager):
continue

# If conductanceSource not available, insert standard SEClamp
if hasattr(Nd.h, "conductanceSource"):
if hasattr(Nd.h, "conductanceSource"):
seclamp = Nd.h.conductanceSource(tpoint_list.x[sec_id], sec=sc.sec)
else:
# create single electrode voltage clamp at location
Expand Down

0 comments on commit 4572e1e

Please sign in to comment.