Mercurial > hg > plosone_underreview
comparison tests/test_load_features.py @ 85:9b2beffa5fdd branch-tests
test updates
author | Maria Panteli <m.x.panteli@gmail.com> |
---|---|
date | Tue, 26 Sep 2017 21:19:19 +0100 |
parents | 3ed4c6af5a93 |
children |
comparison
equal
deleted
inserted
replaced
84:027945e93211 | 85:9b2beffa5fdd |
---|---|
8 import pytest | 8 import pytest |
9 | 9 |
10 import os | 10 import os |
11 import numpy as np | 11 import numpy as np |
12 import pandas as pd | 12 import pandas as pd |
13 | |
13 import scripts.load_features as load_features | 14 import scripts.load_features as load_features |
14 | 15 |
15 feat_loader = load_features.FeatureLoader(win2sec=8) | 16 feat_loader = load_features.FeatureLoader(win2sec=8) |
16 | 17 |
17 #TEST_METADATA_FILE = '../data/sample_dataset/metadata.csv' | |
18 TEST_METADATA_FILE = os.path.join(os.path.dirname(__file__), os.path.pardir, | 18 TEST_METADATA_FILE = os.path.join(os.path.dirname(__file__), os.path.pardir, |
19 'data', 'sample_dataset', 'metadata.csv') | 19 'data', 'sample_dataset', 'metadata.csv') |
20 #TEST_METADATA_FILE = 'data/sample_dataset/metadata.csv' | |
21 #TEST_MELODIA_FILE = 'data/sample_dataset/Melodia/mel_1_2_1.csv' | |
22 TEST_MELODIA_FILE = os.path.join(os.path.dirname(__file__), os.path.pardir, | 20 TEST_MELODIA_FILE = os.path.join(os.path.dirname(__file__), os.path.pardir, |
23 'data', 'sample_dataset', 'Melodia', 'mel_1_2_1.csv') | 21 'data', 'sample_dataset', 'Melodia', 'mel_1_2_1.csv') |
24 | 22 |
25 def test_get_music_idx_from_bounds(): | 23 def test_get_music_idx_from_bounds(): |
26 bounds = np.array([['0', '10.5', 'm']]) | 24 bounds = np.array([['0', '10.5', 'm']]) |