From 4572e1effb9fdef8e7874bc837cf7b39d900a008 Mon Sep 17 00:00:00 2001 From: Jorge Blanco Alonso Date: Thu, 29 Feb 2024 13:34:10 +0100 Subject: [PATCH] Use Neuron.h instead of Nd.h --- neurodamus/core/stimuli.py | 3 +-- neurodamus/stimulus_manager.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/neurodamus/core/stimuli.py b/neurodamus/core/stimuli.py index 46e81678..739e6cff 100644 --- a/neurodamus/core/stimuli.py +++ b/neurodamus/core/stimuli.py @@ -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: diff --git a/neurodamus/stimulus_manager.py b/neurodamus/stimulus_manager.py index 8b147b7e..6414adce 100644 --- a/neurodamus/stimulus_manager.py +++ b/neurodamus/stimulus_manager.py @@ -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