Skip to content

Commit

Permalink
PointNetwork: add clear_stimuli method
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Apr 7, 2024
1 parent 9ae71c1 commit 4b5c2be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions navis/interfaces/neuron/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4b5c2be

Please sign in to comment.