Clean up imports

pull/1/head
Matthew D. Scholefield 2017-11-21 16:51:37 -06:00
parent 9463b0babf
commit 76a36ac712
2 changed files with 4 additions and 9 deletions

View File

@ -1,12 +1,9 @@
# Python 3
from os import makedirs
from typing import Tuple, List, Any
import numpy as np
from os import makedirs
from os.path import isfile, join, dirname
import wavio
from typing import Tuple, List, Any
from precise.params import ListenerParams
@ -143,6 +140,7 @@ def load_gen_data(prefix: str) -> Tuple[np.array, np.array]:
def write_gen_data(prefix: str):
"""Copies fragments from keyword/ to not-keyword/generated/keyword/"""
import wavio
fd = join(prefix, 'not-keyword', 'generated')
kws, _ = find_wavs(prefix)

View File

@ -8,10 +8,7 @@ sys.path += ['.'] # noqa
import argparse
from glob import glob
from os import makedirs
from os.path import join, basename, splitext
import wavio
from os.path import basename, splitext
from precise.common import *