From 64e8e5f3e371d741c0766fc0ba493adda50ff6dd Mon Sep 17 00:00:00 2001 From: Thomas Fillon Date: Fri, 3 Oct 2014 15:01:13 +0200 Subject: [PATCH] fix(limsi_sad): had to throw an ImportError when yaafe is missing --- timeside/analyzer/limsi_sad.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- 2.39.5