Eomys / SciDataTool

SciDataTool is an open-source Python package for scientific data handling. The objective is to provide a user-friendly, unified, flexible module to postprocess any kind of signal. It is meant to be used by researchers, R&D engineers and teachers in any scientific area. This package allows to efficiently store data fields in the time/space or in the frequency domain, to easily perform Fourier Transforms, to extract slices, to convert units, to compare several fields, etc. It therefore leads to simplified plot commands.
Apache License 2.0
26 stars 21 forks source link

[BC] Error when calculating ifft of DataFreq containing only one frequency #86

Open EmileDvs opened 2 years ago

EmileDvs commented 2 years ago

As shown in test_fft1d_non_uniform() of Tests\Validation\test_fft.py, the ifft of a DataFreq with a single frequency crashes when requesting the DataTime on an input time arrays ("time=axis_data").

A possible workaround is to add another value in frequency axis and zero padding the DataFreq consequently.