diff options
author | John Glover <j@johnglover.net> | 2013-06-12 23:08:28 +0200 |
---|---|---|
committer | John Glover <j@johnglover.net> | 2013-06-12 23:08:28 +0200 |
commit | 90509d9c9c7a0716540d069f15acb41e4cde131c (patch) | |
tree | c0ead94191c515f455a530ad6d85221ac9125928 /tests | |
parent | a06d3352a08deab4175b571cdc51d3ef3fc74f36 (diff) | |
download | simpl-90509d9c9c7a0716540d069f15acb41e4cde131c.tar.gz simpl-90509d9c9c7a0716540d069f15acb41e4cde131c.tar.bz2 simpl-90509d9c9c7a0716540d069f15acb41e4cde131c.zip |
Make add_peak, add_partial and partial methods on Frame objects take Peak parameters instead of Peak object pointers.
Update Python objects to return void from find_peaks_in_frame
and update_partials.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_base.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_base.py b/tests/test_base.py index 1a231f5..667d928 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -48,6 +48,10 @@ class TestFrame(object): assert_almost_equals(f.peaks[0].amplitude, p.amplitude, float_precision) + assert_almost_equals(f.peaks[0].frequency, p.frequency, + float_precision) + assert_almost_equals(f.peaks[0].phase, p.phase, + float_precision) f.clear() assert len(f.peaks) == 0 |