From b496b442881a6ca7bbae603ee343cb9ccc6f0638 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 14 Oct 2013 19:00:07 +0200 Subject: [PATCH] Analyzer implements nothing --- tests/api/exemplesCMMR.py | 5 ++++- timeside/analyzer/core.py | 6 ------ 2 files changed, 4 insertions(+), 7 deletions(-) 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 "" -- 2.39.5