]> git.parisson.com Git - timeside-diadems.git/commitdiff
Fixes some bugs occuring after 04abf2e22c2ca06a
authorThomas Fillon <thomas@parisson.com>
Tue, 27 May 2014 12:38:43 +0000 (14:38 +0200)
committerThomas Fillon <thomas@parisson.com>
Tue, 27 May 2014 12:38:43 +0000 (14:38 +0200)
timeside/analyzer/limsi_sad.py

index dff1b02b802953090572a04352ed7d9277b5ed9d..fb91126b1765015aeb4c7528fdc2b79432e46271 100644 (file)
@@ -123,12 +123,15 @@ class LimsiSad(Analyzer):
         return frames, eod
 
     def post_process(self):
-        mfcc = self.process_pipe.results['yaafe.mfcc']['data_object']['value']
-        mfccd1 = self.process_pipe.results[
-            'yaafe.mfccd1']['data_object']['value']
-        mfccd2 = self.process_pipe.results[
-            'yaafe.mfccd2']['data_object']['value']
-        zcr = self.process_pipe.results['yaafe.zcr']['data_object']['value']
+        yaafe_result = self.process_pipe.results
+        mfcc = yaafe_result.get_result_by_id(
+            'yaafe.mfcc')['data_object']['value']
+        mfccd1 = yaafe_result.get_result_by_id(
+            'yaafe.mfccd1')['data_object']['value']
+        mfccd2 = yaafe_result.get_result_by_id(
+            'yaafe.mfccd2')['data_object']['value']
+        zcr = yaafe_result.get_result_by_id(
+            'yaafe.zcr')['data_object']['value']
 
         features = np.concatenate((mfcc, mfccd1, mfccd2, zcr), axis=1)