From: Guillaume Pellerin Date: Thu, 31 Oct 2013 23:06:46 +0000 (+0100) Subject: cleanup, sandbox: test hdf5 X-Git-Tag: 0.5.1-0~5 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9b54f10d9aae158fad99e8dad5619e31f4524f51;p=timeside.git cleanup, sandbox: test hdf5 --- 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)