From 9b54f10d9aae158fad99e8dad5619e31f4524f51 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 1 Nov 2013 00:06:46 +0100 Subject: [PATCH] cleanup, sandbox: test hdf5 --- tests/sandbox/test_parent.py | 7 +++++-- timeside/core.py | 5 ++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/sandbox/test_parent.py b/tests/sandbox/test_parent.py index 4852464..84df1fc 100644 --- a/tests/sandbox/test_parent.py +++ b/tests/sandbox/test_parent.py @@ -8,6 +8,9 @@ source = os.path.join(os.path.dirname(__file__), "../samples/sweep.wav") d = timeside.decoder.FileDecoder(source) a = timeside.analyzer.OnsetDetectionFunction() -(d | a).run() +pipe = d | a +pipe.run() -print a.results \ No newline at end of file +print pipe.results + +a.results.to_hdf5('../results/sweep_odf.hdf5') diff --git a/timeside/core.py b/timeside/core.py index 2e95410..426ffae 100644 --- a/timeside/core.py +++ b/timeside/core.py @@ -253,9 +253,8 @@ class ProcessPipe(object): def __ior__(self, other): if isinstance(other, Processor): parents = other.parents - if parents: - for parent in parents: - self |= parent + for parent in parents: + self |= parent self.processors.append(other) elif isinstance(other, ProcessPipe): self.processors.extend(other.processors) -- 2.39.5