Skip to content

Commit

Permalink
pyflakes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Lostanlen committed Nov 28, 2018
1 parent 6621042 commit 8d02b6c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
3 changes: 0 additions & 3 deletions birdvoxdetect/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import pandas as pd
import scipy.signal
import soundfile as sf
import sys
import traceback


Expand Down Expand Up @@ -147,8 +146,6 @@ def get_likelihood(audio, sr, frame_rate):
pcen_likelihood = pcen_snr / (0.001 + pcen_snr)
median_likelihood = scipy.signal.medfilt(pcen_likelihood,
kernel_size=127)
fractional_subsampling =\
pcen_settings["sr"] / (pcen_settings["hop_length"]*frame_rate)
audio_duration = audio.shape[0]
likelihood_x = np.arange(
0.0,
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import sys
import gzip
import imp
from itertools import product
from setuptools import setup, find_packages

try:
Expand Down
3 changes: 0 additions & 3 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from argparse import ArgumentTypeError
import numpy as np
import os
import pytest
import shutil
import tempfile


Expand All @@ -13,7 +11,6 @@
from mock import patch


import birdvoxdetect
from birdvoxdetect.birdvoxdetect_exceptions import BirdVoxDetectError
from birdvoxdetect.cli import positive_float, get_file_list, run
from birdvoxdetect.cli import parse_args
Expand Down
5 changes: 2 additions & 3 deletions tests/test_core.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import birdvoxdetect
from birdvoxdetect.core import get_output_path, process_file
import pytest
import tempfile
import numpy as np
import os
import pandas as pd
import shutil
import soundfile as sf


from birdvoxdetect.birdvoxdetect_exceptions import BirdVoxDetectError
from birdvoxdetect.birdvoxdetect_warnings import BirdVoxDetectWarning


TEST_DIR = os.path.dirname(__file__)
Expand Down

0 comments on commit 8d02b6c

Please sign in to comment.