From: Guillaume Pellerin Date: Mon, 14 Oct 2013 17:00:07 +0000 (+0200) Subject: Analyzer implements nothing X-Git-Tag: 0.5.0~27 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b496b442881a6ca7bbae603ee343cb9ccc6f0638;p=timeside.git Analyzer implements nothing --- diff --git a/tests/api/exemplesCMMR.py b/tests/api/exemplesCMMR.py index 65130ab..603ac9a 100644 --- a/tests/api/exemplesCMMR.py +++ b/tests/api/exemplesCMMR.py @@ -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) diff --git a/timeside/analyzer/core.py b/timeside/analyzer/core.py index 4e97793..e7c77da 100644 --- a/timeside/analyzer/core.py +++ b/timeside/analyzer/core.py @@ -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 ""