Save imports

This commit is contained in:
Si11ium
2020-05-19 10:03:35 +02:00
parent 645b7905e8
commit f290d5a8d8
4 changed files with 65 additions and 9 deletions

View File

@ -1,5 +1,14 @@
import librosa
from scipy.signal import butter, lfilter
try:
import librosa
except ImportError: # pragma: no-cover
raise ImportError('You want to use `librosa` plugins which are not installed yet,' # pragma: no-cover
' install it with `pip install librosa`.')
try:
from scipy.signal import butter, lfilter
except ImportError: # pragma: no-cover
raise ImportError('You want to use `scikit` plugins which are not installed yet,' # pragma: no-cover
' install it with `pip install scikit-learn`.')
import numpy as np