From 5ee7f1e13c3824c59062d8593f8a3a517df16999 Mon Sep 17 00:00:00 2001 From: "valentin.emiya" <valentin.emiya@lif.univ-mrs.fr> Date: Wed, 3 Jun 2020 22:29:57 +0200 Subject: [PATCH] CI tests pass --- python/tffpy/tests/ci_config.py | 8 +------- python/tffpy/utils.py | 1 + 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/python/tffpy/tests/ci_config.py b/python/tffpy/tests/ci_config.py index 8042047..c47b4d1 100644 --- a/python/tffpy/tests/ci_config.py +++ b/python/tffpy/tests/ci_config.py @@ -7,30 +7,24 @@ from configparser import ConfigParser from pathlib import Path import os -import scipy as sp -import matplotlib as mpl from yafe.utils import ConfigParser as YafeConfigParser from tffpy.utils import get_config_file, generate_config if __name__ == '__main__': - print(sp.__version__) - print(mpl.__version__) config_file = get_config_file() if not config_file.exists(): generate_config() config = ConfigParser() config.read(config_file) - print(len(Path(__file__).absolute().parents)) - print(list(Path(__file__).absolute().parents)) data_path = Path(__file__).absolute().parents[3] / 'data' print('Data path:', str(data_path)) config.set('DATA', 'data_path', str(data_path)) config.write(open(config_file, 'w')) yafe_config_file = YafeConfigParser._config_path - print(yafe_config_file) + print('Yafe configuration file:', yafe_config_file) if not yafe_config_file.exists(): yafe_user_path = Path(os.path.expanduser('~')) / 'yafe_user_path' yafe_logger_path = Path(os.path.expanduser('~')) / 'yafe_logger_path' diff --git a/python/tffpy/utils.py b/python/tffpy/utils.py index 3151309..0460a84 100755 --- a/python/tffpy/utils.py +++ b/python/tffpy/utils.py @@ -15,6 +15,7 @@ from ltfatpy import plotdgtreal, dgtreal, idgtreal def plot_mask(mask, hop, n_bins, fs): """ Plot time-frequency mask + Parameters ---------- mask : nd-array -- GitLab