DASDAE / dascore

A python library for distributed fiber optic sensing
Other
71 stars 16 forks source link

dft should be idempotent #395

Closed d-chambers closed 2 months ago

d-chambers commented 2 months ago

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

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.

Currently this doesn't work.

Versions