From cf7459d0d3d6181d8e99c082dcd064a47e461a8d Mon Sep 17 00:00:00 2001 From: Shabnam Kadir Date: Fri, 26 Apr 2013 14:25:06 +0100 Subject: [PATCH] Correcting stupid mistake F_HIGH again --- spikedetekt/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spikedetekt/core.py b/spikedetekt/core.py index b1e4139..8d9728a 100644 --- a/spikedetekt/core.py +++ b/spikedetekt/core.py @@ -32,7 +32,8 @@ def set_globals_samples(sample_rate,high_frequency_factor): before any processing """ Parameters['SAMPLE_RATE'] = sample_rate - exec 'F_HIGH = high_frequency_factor*SAMPLE_RATE/2' in Parameters + Parameters['HFF']=high_frequency_factor + exec 'F_HIGH = HFF*SAMPLE_RATE/2' in Parameters exec 'S_BEFORE = int(T_BEFORE*SAMPLE_RATE)' in Parameters exec 'S_AFTER = int(T_AFTER*SAMPLE_RATE)' in Parameters exec 'S_TOTAL = S_BEFORE + S_AFTER' in Parameters