diff options
author | John Glover <glover.john@gmail.com> | 2010-11-02 16:11:00 +0000 |
---|---|---|
committer | John Glover <glover.john@gmail.com> | 2010-11-02 16:11:00 +0000 |
commit | f941ad291e1bf249e27ee1a9514e76ddc0ec32fe (patch) | |
tree | 32835700c2d9cc190c65cf340f382b7b9ee5fe9c /mq.py | |
parent | 08f2885c58cc4ae5e4ecf42aecaa043de2c5bd4c (diff) | |
download | simpl-f941ad291e1bf249e27ee1a9514e76ddc0ec32fe.tar.gz simpl-f941ad291e1bf249e27ee1a9514e76ddc0ec32fe.tar.bz2 simpl-f941ad291e1bf249e27ee1a9514e76ddc0ec32fe.zip |
Added colour to default plots (with heatmap) and some minor code tidying
Diffstat (limited to 'mq.py')
-rw-r--r-- | mq.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -41,7 +41,7 @@ def TWM(peaks, f_min=0.0, f_max=3000.0, f_step=20.0): max_amp = max([x.amplitude for x in peaks]) # remove all peaks with amplitude of less than 10% of max - # note: this is not in the paper, found that it improved accuracy however + # note: this is not in the TWM paper, found that it improved accuracy however peaks = [x for x in peaks if x.amplitude >= (max_amp * 0.1)] # get the max frequency of the remaining peaks |