From 94e7c85c36075d10ce567192b7028ea1667baa79 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 13 Nov 2023 14:09:24 -0500 Subject: [PATCH] Rename thre to full threshold --- caiman/source_extraction/volpy/atm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/caiman/source_extraction/volpy/atm.py b/caiman/source_extraction/volpy/atm.py index 7eced5d18..e5513d95d 100644 --- a/caiman/source_extraction/volpy/atm.py +++ b/caiman/source_extraction/volpy/atm.py @@ -280,7 +280,7 @@ def denoise_spikes(trace, sampleRate, windowLength, superfactor, threshs=(.4, .6 tlimit = len(trace) - thre = threshold_sets[th] + threshold = threshold_sets[th] # check validity of spike kernel by detecting pre-spike ramp # if the shape of first 50 spikes are suspicious, it will return an empty array @@ -302,8 +302,8 @@ def test_spikeshape(time, tcourse, tcourse_med, tcourse_std, regress_matrix): return (s, p) - spiketimes = get_spiketimes(high_freq, high_freq_med + thre * high_freq_std, - trace, trace_med + thre * trace_std, tlimit) + spiketimes = get_spiketimes(high_freq, high_freq_med + threshold * high_freq_std, + trace, trace_med + threshold * trace_std, tlimit) spikebins = 50 spikenrep = (len(spiketimes) // spikebins) + int((len(spiketimes) % spikebins) > 0)