From: Guillaume Pellerin Date: Fri, 25 Oct 2013 20:24:10 +0000 (+0200) Subject: remove self returning from pipe.run(), cleanup X-Git-Tag: 0.5.1-0~20 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=956f3d72ae9e32f5c60b33a6a182867293b8e98a;p=timeside.git remove self returning from pipe.run(), cleanup --- diff --git a/doc/source/tutorial/quick_start.rst b/doc/source/tutorial/quick_start.rst index 5b608e7..4016184 100644 --- a/doc/source/tutorial/quick_start.rst +++ b/doc/source/tutorial/quick_start.rst @@ -33,7 +33,6 @@ A most basic operation, transcoding, is easily performed with two processors: >>> encoder = timeside.encoder.VorbisEncoder('sweep.ogg') >>> pipe = decoder | encoder >>> pipe.run() - As one can see in the above example, creating a processing pipe is performed with the binary OR operator. @@ -47,7 +46,6 @@ Spectrogram. All graphers return an image: >>> decoder = timeside.decoder.FileDecoder('sweep.wav') # doctest: +SKIP >>> spectrogram = timeside.grapher.Spectrogram(width=400, height=150) >>> (decoder | spectrogram).run() - >>> spectrogram.render().save('graph.png') It is possible to create longer pipes, as well as subpipes, here for both @@ -60,6 +58,5 @@ analysis and encoding: >>> levels = timeside.analyzer.Level() >>> encoders = timeside.encoder.Mp3Encoder('sweep.mp3') | timeside.encoder.FlacEncoder('sweep.flac') >>> (decoder | levels | encoders).run() - >>> print levels.results {'level.max': GlobalValueResult(id_metadata=IdMetadata(id='level.max', name='Level Analyzer Max', unit='dBFS', description='', date='...', version='0.5.1', author='TimeSide'), data_object=DataObject(value=array([-6.021])), audio_metadata=AudioMetadata(uri='file://...sweep.wav', start=0.0, duration=8.0, is_segment=False, channels=None, channelsManagement=''), parameters={}), 'level.rms': GlobalValueResult(id_metadata=IdMetadata(id='level.rms', name='Level Analyzer RMS', unit='dBFS', description='', date='...', version='0.5.1', author='TimeSide'), data_object=DataObject(value=array([-9.856])), audio_metadata=AudioMetadata(uri='file://...sweep.wav', start=0.0, duration=8.0, is_segment=False, channels=None, channelsManagement=''), parameters={})} diff --git a/timeside/analyzer/core.py b/timeside/analyzer/core.py index 3ad93d4..58a415d 100644 --- a/timeside/analyzer/core.py +++ b/timeside/analyzer/core.py @@ -738,7 +738,6 @@ class AnalyzerResultContainer(dict): >>> a = timeside.analyzer.Analyzer() >>> (d|a).run() #doctest: +ELLIPSIS - >>> a.new_result() #doctest: +ELLIPSIS FrameValueResult(id_metadata=IdMetadata(id='analyzer', name='Generic analyzer', unit='', description='', date='...', version='0.5.1', author='TimeSide'), data_object=DataObject(value=array([], dtype=float64)), audio_metadata=AudioMetadata(uri='file:///...', start=1.0, duration=7.0, is_segment=True, channels=None, channelsManagement=''), frame_metadata=FrameMetadata(samplerate=44100, blocksize=8192, stepsize=8192), parameters={}) >>> resContainer = timeside.analyzer.core.AnalyzerResultContainer() diff --git a/timeside/core.py b/timeside/core.py index 7bcc1bf..901c5bc 100644 --- a/timeside/core.py +++ b/timeside/core.py @@ -269,7 +269,7 @@ class ProcessPipe(object): for item in items: item.release() - return self + #return self @property def results(self):