Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v3
with:
Expand Down
8 changes: 6 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import os
import sys
import importlib.util

import sphinx

Expand Down Expand Up @@ -148,9 +149,12 @@
# built documents.
#

import imp
spec = importlib.util.spec_from_file_location(
"msaf.version", os.path.abspath("../msaf/version.py")
)
msaf = importlib.util.module_from_spec(spec)
spec.loader.exec_module(msaf)

msaf = imp.load_source("msaf.version", "../msaf/version.py")
# The short X.Y version.
version = msaf.short_version
# The full version, including alpha/beta/rc tags.
Expand Down
2 changes: 1 addition & 1 deletion msaf/algorithms/foote/segmenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def median_filter(X, M=8):

def compute_gaussian_krnl(M):
"""Creates a gaussian kernel following Foote's paper."""
g = signal.gaussian(M, M // 3.0, sym=True)
g = signal.windows.gaussian(M, M // 3.0, sym=True)
G = np.dot(g.reshape(-1, 1), g.reshape(1, -1))
G[M // 2 :, : M // 2] = -G[M // 2 :, : M // 2]
G[: M // 2, M // 2 :] = -G[: M // 2, M // 2 :]
Expand Down
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import glob
import imp
import importlib.util

from setuptools import find_packages, setup
from setuptools import setup, find_packages

version = imp.load_source("msaf.version", "msaf/version.py")
spec = importlib.util.spec_from_file_location("msaf.version", "msaf/version.py")
version = importlib.util.module_from_spec(spec)
spec.loader.exec_module(version)

# MSAF configuration
setup(
Expand Down Expand Up @@ -42,7 +44,6 @@
"cvxopt",
"decorator",
"enum34",
"future",
"jams >= 0.3.0",
"joblib",
"librosa >= 0.6.0",
Expand Down