From d6c426b0935f8b2a714f57456e1eb248bb4ef58a Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 23 Oct 2014 13:20:15 +0200 Subject: [PATCH] fix doctests --- doc/source/tutorial/index.rst | 2 +- timeside/analyzer/spectrogram_buffer.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/source/tutorial/index.rst b/doc/source/tutorial/index.rst index 7e9ee3e..65b5331 100644 --- a/doc/source/tutorial/index.rst +++ b/doc/source/tutorial/index.rst @@ -14,6 +14,6 @@ Contents: Quick start Usage of AnalyzerResult Running a pipe with previously decoded frames - Streaming encoded audio outside TimeSide + Streaming out encoded audio diff --git a/timeside/analyzer/spectrogram_buffer.py b/timeside/analyzer/spectrogram_buffer.py index 25edaac..0f8907f 100644 --- a/timeside/analyzer/spectrogram_buffer.py +++ b/timeside/analyzer/spectrogram_buffer.py @@ -52,12 +52,12 @@ class SpectrogramBuffer(Spectrogram): >>> from timeside.tools.test_samples import samples >>> audio_source = samples['sweep.wav'] >>> decoder = get_processor('file_decoder')(uri=audio_source) - >>> spectrogram = get_processor('spectrogram_analyzer')(input_blocksize=2048, input_stepsize=1024) + >>> spectrogram = get_processor('spectrogram_analyzer_buffer')(input_blocksize=2048, input_stepsize=1024) >>> pipe = (decoder | spectrogram) >>> pipe.run() >>> spectrogram.results.keys() - ['spectrogram_analyzer'] - >>> result = spectrogram.results['spectrogram_analyzer'] + ['spectrogram_analyzer_buffer'] + >>> result = spectrogram.results['spectrogram_analyzer_buffer'] >>> result.data.shape (344, 1025) @@ -68,11 +68,11 @@ class SpectrogramBuffer(Spectrogram): from timeside.tools.test_samples import samples audio_source = samples['sweep.wav'] decoder = get_processor('file_decoder')(uri=audio_source) - spectrogram = get_processor('spectrogram_analyzer')(input_blocksize=2048, + spectrogram = get_processor('spectrogram_analyzer_buffer')(input_blocksize=2048, input_stepsize=1024) pipe = (decoder | spectrogram) pipe.run() - res = spectrogram.results['spectrogram_analyzer'] + res = spectrogram.results['spectrogram_analyzer_buffer'] res.render() """ -- 2.39.5