Skip to content

Commit

Permalink
Add units to amplitude annotation of SpikeTrains
Browse files Browse the repository at this point in the history
Closes #281
  • Loading branch information
jpgill86 committed Dec 21, 2020
1 parent d6e6076 commit 8b1a87f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neurotic/datasets/data.py
Expand Up @@ -620,7 +620,7 @@ def _detect_spikes(sig, discriminator, epochs):
st = neo.SpikeTrain(
name = discriminator['name'],
channels = [discriminator['channel']], # custom annotation
amplitude = discriminator['amplitude'], # custom annotation
amplitude = pq.Quantity(discriminator['amplitude'], discriminator['units']), # custom annotation
times = spikes_between_min_and_max * pq.s,
t_start = sig.t_start,
t_stop = sig.t_stop,
Expand Down

0 comments on commit 8b1a87f

Please sign in to comment.