summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn Glover <j@johnglover.net>2012-07-06 14:51:29 +0100
committerJohn Glover <j@johnglover.net>2012-07-06 14:51:29 +0100
commite124bdb052109b1b0e73ae51f55df32f52dbcf9c (patch)
tree1746fca25a6fa8ab109550c9d3c487f7baea3087 /tests
parent0af5fcc2bfa03f81a13815d070d93bea95b8745c (diff)
downloadsimpl-e124bdb052109b1b0e73ae51f55df32f52dbcf9c.tar.gz
simpl-e124bdb052109b1b0e73ae51f55df32f52dbcf9c.tar.bz2
simpl-e124bdb052109b1b0e73ae51f55df32f52dbcf9c.zip
[tests] Remove unnecessary code from test_synthesis.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_synthesis.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/test_synthesis.py b/tests/test_synthesis.py
index 9a81c8e..2e620ea 100644
--- a/tests/test_synthesis.py
+++ b/tests/test_synthesis.py
@@ -1,6 +1,4 @@
import os
-import json
-import numpy as np
from nose.tools import assert_almost_equals
import simpl
import simpl.peak_detection as peak_detection
@@ -17,9 +15,6 @@ num_samples = num_frames * hop_size
audio_path = os.path.join(
os.path.dirname(__file__), 'audio/flute.wav'
)
-libsms_test_data_path = os.path.join(
- os.path.dirname(__file__), 'libsms_test_data.json'
-)
libsms_harmonic_synthesis_ifft_path = os.path.join(
os.path.dirname(__file__), 'libsms_harmonic_synthesis_ifft.wav'
)
@@ -35,13 +30,6 @@ Synthesis = synthesis.Synthesis
SMSSynthesis = synthesis.SMSSynthesis
-def _load_libsms_test_data():
- test_data = None
- with open(libsms_test_data_path, 'r') as f:
- test_data = json.loads(f.read())
- return test_data
-
-
class TestSynthesis(object):
@classmethod
def setup_class(cls):
@@ -69,7 +57,6 @@ class TestSMSSynthesis(object):
def setup_class(cls):
cls.audio = simpl.read_wav(audio_path)[0]
cls.audio = cls.audio[0:num_samples]
- cls.test_data = _load_libsms_test_data()
def test_basic(self):
pd = SMSPeakDetection()