Several processing functions require converting a patch to the frequency domain. It would be nice if Patch.dft were idempotent so that a frequency domain patch can simply be passed to these functions.
Example
import dascore as dc
patch = dc.get_example_patch()
dft_1 = patch.dft("time")
dft_2 = dft_1.dft("time")
assert dft_1 == dft_2
Where in the second case the dft method should simply see the patch has already been transformed and return it.
Description
Several processing functions require converting a patch to the frequency domain. It would be nice if
Patch.dft
were idempotent so that a frequency domain patch can simply be passed to these functions.Example
Where in the second case the
dft
method should simply see the patch has already been transformed and return it.Currently this doesn't work.
Versions