Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tff2020
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
skmad-suite
tff2020
Commits
7b6f53b1
Commit
7b6f53b1
authored
5 years ago
by
valentin.emiya
Browse files
Options
Downloads
Patches
Plain Diff
update CI
parent
6823dc37
No related branches found
No related tags found
No related merge requests found
Pipeline
#5099
failed
5 years ago
Stage: test
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
python/doc/conf.py
+1
-0
1 addition, 0 deletions
python/doc/conf.py
python/tffpy/tf_tools.py
+15
-4
15 additions, 4 deletions
python/tffpy/tf_tools.py
with
18 additions
and
6 deletions
.gitlab-ci.yml
+
2
−
2
View file @
7b6f53b1
...
...
@@ -9,7 +9,7 @@ tests:
-
pip3 install --no-deps .
-
python3 -c "from tffpy.utils import generate_config; generate_config()"
-
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
# generate the documentation
...
...
@@ -25,7 +25,7 @@ pages:
-
pip3 install --no-deps .
-
python3 setup.py build_sphinx
-
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
artifacts
:
paths
:
...
...
This diff is collapsed.
Click to expand it.
python/doc/conf.py
+
1
−
0
View file @
7b6f53b1
...
...
@@ -274,6 +274,7 @@ intersphinx_mapping = {
'
scipy
'
:
(
'
https://docs.scipy.org/doc/scipy/reference/
'
,
None
),
'
skpomade
'
:
(
'
http://valentin.emiya.pages.lis-lab.fr/skpomade/
'
,
None
),
'
yafe
'
:
(
'
http://skmad-suite.pages.lis-lab.fr/yafe/
'
,
None
),
'
ltfatpy
'
:
(
'
http://dev.pages.lis-lab.fr/ltfatpy/
'
,
None
),
}
# Allow errors in notebook
...
...
This diff is collapsed.
Click to expand it.
python/tffpy/tf_tools.py
+
15
−
4
View file @
7b6f53b1
...
...
@@ -18,24 +18,35 @@ def get_dgt_params(win_type, approx_win_len, hop, n_bins,
"""
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
----------
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
Approximate window length
for FIR windows and
Approximate window length
hop : int
Hop size
n_bins : int
Number of frequency bins
phase_conv :
phase_conv :
'
freqinv
'
or
'
timeinv
'
Phase convention
sig_len : int
Signal length
Returns
-------
dict
DGT parameters (see above)
"""
supported_wins
=
arg_firwin
()
|
{
'
gauss
'
}
msg
=
'
{} not supported, try {}
'
.
format
(
win_type
,
supported_wins
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment