]> git.parisson.com Git - timeside-diadems.git/commitdiff
fix(limsi_sad): had to throw an ImportError when yaafe is missing
authorThomas Fillon <thomas@parisson.com>
Fri, 3 Oct 2014 13:01:13 +0000 (15:01 +0200)
committerThomas Fillon <thomas@parisson.com>
Fri, 3 Oct 2014 13:01:13 +0000 (15:01 +0200)
timeside/analyzer/limsi_sad.py

index 73969655189ee16efe1490aa89ec6d745b08dccc..58441704a23265c2e1339d5361b4c5244cd030c6 100644 (file)
@@ -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)