From f8b709c0ba087c06701e8b5ce523edc4b35ad4f1 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 3 Dec 2013 19:29:01 +0100 Subject: [PATCH] add a display test to set the doctest options (not fully fixed) --- timeside/analyzer/core.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/timeside/analyzer/core.py b/timeside/analyzer/core.py index e7ff54a..139cf55 100644 --- a/timeside/analyzer/core.py +++ b/timeside/analyzer/core.py @@ -29,6 +29,7 @@ import numpy from collections import OrderedDict import h5py import h5tools +import os numpy_data_types = [ @@ -793,12 +794,12 @@ class AnalyzerResultContainer(dict): >>> d = timeside.decoder.FileDecoder(wavFile, start=1) >>> a = timeside.analyzer.Analyzer() - >>> (d|a).run() #doctest: +SKIP - >>> a.new_result() #doctest: +SKIP + >>> (d|a).run() #doctest: %s + >>> a.new_result() #doctest: %s FrameValueResult(id_metadata=IdMetadata(id='analyzer', name='Generic analyzer', unit='', description='', date='...', version='...', author='TimeSide', uuid='...'), data_object=DataObject(value=array([], dtype=float64)), audio_metadata=AudioMetadata(uri='http://...', start=1.0, duration=7..., is_segment=True, channels=None, channelsManagement=''), frame_metadata=FrameMetadata(samplerate=44100, blocksize=8192, stepsize=8192), parameters={}) >>> resContainer = timeside.analyzer.core.AnalyzerResultContainer() - ''' + ''' % (doctest_option, doctest_option) def __init__(self, analyzer_results=None): super(AnalyzerResultContainer, self).__init__() -- 2.39.5