Skip to content

Commit

Permalink
Correcting stupid mistake F_HIGH again
Browse files Browse the repository at this point in the history
  • Loading branch information
shabnamkadir committed Apr 26, 2013
1 parent 729b88d commit cf7459d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spikedetekt/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf7459d

Please sign in to comment.