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

update CI

parent 6823dc37
No related branches found
No related tags found
No related merge requests found
Pipeline #5099 failed
...@@ -9,7 +9,7 @@ tests: ...@@ -9,7 +9,7 @@ tests:
- pip3 install --no-deps . - pip3 install --no-deps .
- python3 -c "from tffpy.utils import generate_config; generate_config()" - python3 -c "from tffpy.utils import generate_config; generate_config()"
- pwd - pwd
- python3 -c "from configparser import ConfigParser; from pathlib import Path; config.read('/root/.config/tffpy.conf'); config.set('DATA', 'data_path', '/builds/skmad-suite/tff2020/data'); config.write(open('/root/.config/tffpy.conf', 'w'))" - python3 -c "from configparser import ConfigParser; from pathlib import Path; config = ConfigParser(); config.read('/root/.config/tffpy.conf'); config.set('DATA', 'data_path', '/builds/skmad-suite/tff2020/data'); config.write(open('/root/.config/tffpy.conf', 'w'))"
- pytest-3 - pytest-3
# generate the documentation # generate the documentation
...@@ -25,7 +25,7 @@ pages: ...@@ -25,7 +25,7 @@ pages:
- pip3 install --no-deps . - pip3 install --no-deps .
- python3 setup.py build_sphinx - python3 setup.py build_sphinx
- python3 -c "from tffpy.utils import generate_config; generate_config()" - python3 -c "from tffpy.utils import generate_config; generate_config()"
- python3 -c "from configparser import ConfigParser; from pathlib import Path; config.read('/root/.config/tffpy.conf'); config.set('DATA', 'data_path', '/builds/skmad-suite/tff2020/data'); config.write(open('/root/.config/tffpy.conf', 'w'))" - python3 -c "from configparser import ConfigParser; from pathlib import Path; config = ConfigParser(); config.read('/root/.config/tffpy.conf'); config.set('DATA', 'data_path', '/builds/skmad-suite/tff2020/data'); config.write(open('/root/.config/tffpy.conf', 'w'))"
- cp -r build/sphinx/html public - cp -r build/sphinx/html public
artifacts: artifacts:
paths: paths:
......
...@@ -274,6 +274,7 @@ intersphinx_mapping = { ...@@ -274,6 +274,7 @@ intersphinx_mapping = {
'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None), 'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None),
'skpomade': ('http://valentin.emiya.pages.lis-lab.fr/skpomade/', None), 'skpomade': ('http://valentin.emiya.pages.lis-lab.fr/skpomade/', None),
'yafe': ('http://skmad-suite.pages.lis-lab.fr/yafe/', None), 'yafe': ('http://skmad-suite.pages.lis-lab.fr/yafe/', None),
'ltfatpy': ('http://dev.pages.lis-lab.fr/ltfatpy/', None),
} }
# Allow errors in notebook # Allow errors in notebook
......
...@@ -18,24 +18,35 @@ def get_dgt_params(win_type, approx_win_len, hop, n_bins, ...@@ -18,24 +18,35 @@ def get_dgt_params(win_type, approx_win_len, hop, n_bins,
""" """
Build dictionary of DGT parameter Build dictionary of DGT parameter
The output dictionary `dgt_params` is composed of:
* dgt_params['win'] : the window array (nd-array)
* dgt_params['hop'] : the hop size (int)
* dgt_params['n_bins'] : the number of frequency bins (int)
* dgt_params['input_win_len'] : the effective window length (input window
length rounded to the nearest power of two).
* dgt_params['phase_conv'] : the phase convention 'freqinv' or 'timeinv',
see `pt` argument in :py:func:`ltfatpy.gabor.dgtreal`
Parameters Parameters
---------- ----------
win_type : str win_type : str
Window name, e.g. 'hann', 'gauss' Window name, e.g. 'hann', 'gauss' (see :py:func:`ltfatpy.arg_firwin`)
approx_win_len : int approx_win_len : int
Approximate window length for FIR windows and Approximate window length
hop : int hop : int
Hop size Hop size
n_bins : int n_bins : int
Number of frequency bins Number of frequency bins
phase_conv : phase_conv : 'freqinv' or 'timeinv'
Phase convention Phase convention
sig_len : int sig_len : int
Signal length Signal length
Returns Returns
------- -------
dict
DGT parameters (see above)
""" """
supported_wins = arg_firwin() | {'gauss'} supported_wins = arg_firwin() | {'gauss'}
msg = '{} not supported, try {}'.format(win_type, supported_wins) msg = '{} not supported, try {}'.format(win_type, supported_wins)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment