From: Thomas Fillon Date: Fri, 3 Oct 2014 13:01:13 +0000 (+0200) Subject: fix(limsi_sad): had to throw an ImportError when yaafe is missing X-Git-Tag: 0.6~4^2~28 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c3a6059705efd1da0bf9a9e128348bd1b1b4ccdb;p=timeside.git fix(limsi_sad): had to throw an ImportError when yaafe is missing --- diff --git a/timeside/analyzer/limsi_sad.py b/timeside/analyzer/limsi_sad.py index 7396965..5844170 100644 --- a/timeside/analyzer/limsi_sad.py +++ b/timeside/analyzer/limsi_sad.py @@ -149,7 +149,11 @@ class LimsiSad(Analyzer): 'mfccd1: MFCC CepsIgnoreFirstCoeff=0 blockSize=1024 stepSize=256 > Derivate DOrder=1', 'mfccd2: MFCC CepsIgnoreFirstCoeff=0 blockSize=1024 stepSize=256 > Derivate DOrder=2', 'zcr: ZCR blockSize=1024 stepSize=256'] - yaafe_analyzer = get_processor('yaafe') + try: + yaafe_analyzer = get_processor('yaafe') + except timeside.exceptions.PIDError as e: + raise ImportError(e + '.yaafelib must be missing') + self.parents['yaafe'] = yaafe_analyzer(feature_plan=feature_plan, input_samplerate=16000)