diff --git a/navis/interfaces/neuron/network.py b/navis/interfaces/neuron/network.py index 6abc5149..8596eb85 100644 --- a/navis/interfaces/neuron/network.py +++ b/navis/interfaces/neuron/network.py @@ -338,6 +338,10 @@ def add_stimulus(self, ids, start, frequency, stop=None, duration=None, self._stimuli.append(Stimulus(start, stop, f, randomness, i, ns, nc, label)) + def clear_stimuli(self): + """Clear stimuli.""" + self._stimuli = {} + def connect(self, source, target, weight, delay=5): """Connect two neurons.