]> git.parisson.com Git - timeside.git/commitdiff
Analyzer implements nothing
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 14 Oct 2013 17:00:07 +0000 (19:00 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 14 Oct 2013 17:00:07 +0000 (19:00 +0200)
tests/api/exemplesCMMR.py
timeside/analyzer/core.py

index 65130ab77676dbebc93ef5cea9ae14710588c373..603ac9a1839de01d8b60edd9ba28cebd132d1af0 100644 (file)
@@ -10,7 +10,10 @@ import matplotlib.pyplot as plt
 import numpy as np
 import sys
 
-wav_file = sys.argv[-1]
+if not '.wav' in sys.argv[-1]:
+    wav_file = 'toto.wav'
+else:
+    wav_file = sys.argv[-1]
 
 # normal
 decoder = timeside.decoder.FileDecoder(wav_file, start=10, duration=15)
index 4e9779379f21c6920707165955face1828148687..e7c77da3a1fe4b0c6fe79fb781d6088a4b300be1 100644 (file)
@@ -880,9 +880,6 @@ class Analyzer(Processor):
     Generic class for the analyzers
     '''
 
-    implements(IAnalyzer)
-
-    @interfacedoc
     def setup(self, channels=None, samplerate=None,
               blocksize=None, totalframes=None):
         super(Analyzer, self).setup(channels, samplerate,
@@ -903,17 +900,14 @@ class Analyzer(Processor):
              if key.split('.')[0] == self.id()])
 
     @staticmethod
-    @interfacedoc
     def id():
         return "analyzer"
 
     @staticmethod
-    @interfacedoc
     def name():
         return "Generic analyzer"
 
     @staticmethod
-    @interfacedoc
     def unit():
         return ""