Skip to content

Commit

Permalink
Rename thre to full threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Nov 13, 2023
1 parent d33c039 commit 94e7c85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions caiman/source_extraction/volpy/atm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 94e7c85

Please sign in to comment.