From 4b5c2be49c6c88db741b12f2f53775fcfd3a8a1f Mon Sep 17 00:00:00 2001 From: Philipp Schlegel Date: Sun, 7 Apr 2024 16:17:44 +0100 Subject: [PATCH] PointNetwork: add clear_stimuli method --- navis/interfaces/neuron/network.py | 4 ++++ 1 file changed, 4 insertions(+) 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.