Skip to content
Snippets Groups Projects
Commit 5ee7f1e1 authored by valentin.emiya's avatar valentin.emiya
Browse files

CI tests pass

parent 2c9a0dc1
No related branches found
No related tags found
No related merge requests found
...@@ -7,30 +7,24 @@ ...@@ -7,30 +7,24 @@
from configparser import ConfigParser from configparser import ConfigParser
from pathlib import Path from pathlib import Path
import os import os
import scipy as sp
import matplotlib as mpl
from yafe.utils import ConfigParser as YafeConfigParser from yafe.utils import ConfigParser as YafeConfigParser
from tffpy.utils import get_config_file, generate_config from tffpy.utils import get_config_file, generate_config
if __name__ == '__main__': if __name__ == '__main__':
print(sp.__version__)
print(mpl.__version__)
config_file = get_config_file() config_file = get_config_file()
if not config_file.exists(): if not config_file.exists():
generate_config() generate_config()
config = ConfigParser() config = ConfigParser()
config.read(config_file) config.read(config_file)
print(len(Path(__file__).absolute().parents))
print(list(Path(__file__).absolute().parents))
data_path = Path(__file__).absolute().parents[3] / 'data' data_path = Path(__file__).absolute().parents[3] / 'data'
print('Data path:', str(data_path)) print('Data path:', str(data_path))
config.set('DATA', 'data_path', str(data_path)) config.set('DATA', 'data_path', str(data_path))
config.write(open(config_file, 'w')) config.write(open(config_file, 'w'))
yafe_config_file = YafeConfigParser._config_path yafe_config_file = YafeConfigParser._config_path
print(yafe_config_file) print('Yafe configuration file:', yafe_config_file)
if not yafe_config_file.exists(): if not yafe_config_file.exists():
yafe_user_path = Path(os.path.expanduser('~')) / 'yafe_user_path' yafe_user_path = Path(os.path.expanduser('~')) / 'yafe_user_path'
yafe_logger_path = Path(os.path.expanduser('~')) / 'yafe_logger_path' yafe_logger_path = Path(os.path.expanduser('~')) / 'yafe_logger_path'
......
...@@ -15,6 +15,7 @@ from ltfatpy import plotdgtreal, dgtreal, idgtreal ...@@ -15,6 +15,7 @@ from ltfatpy import plotdgtreal, dgtreal, idgtreal
def plot_mask(mask, hop, n_bins, fs): def plot_mask(mask, hop, n_bins, fs):
""" """
Plot time-frequency mask Plot time-frequency mask
Parameters Parameters
---------- ----------
mask : nd-array mask : nd-array
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment