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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
skmad-suite
tff2020
Commits
5ee7f1e1
Commit
5ee7f1e1
authored
5 years ago
by
valentin.emiya
Browse files
Options
Downloads
Patches
Plain Diff
CI tests pass
parent
2c9a0dc1
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
python/tffpy/tests/ci_config.py
+1
-7
1 addition, 7 deletions
python/tffpy/tests/ci_config.py
python/tffpy/utils.py
+1
-0
1 addition, 0 deletions
python/tffpy/utils.py
with
2 additions
and
7 deletions
python/tffpy/tests/ci_config.py
+
1
−
7
View file @
5ee7f1e1
...
@@ -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
'
...
...
This diff is collapsed.
Click to expand it.
python/tffpy/utils.py
+
1
−
0
View file @
5ee7f1e1
...
@@ -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
...
...
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