Exemplo n.º 1
0
 def test_cft_to_dft(self, cft, dft):
     """ Because if it works one way, we might as well support the reverse """
     conv = cft.to_spectra_type("dft")
     np_assert(conv.data, dft.data)
Exemplo n.º 2
0
 def test_dft_to_cft(self, gauss_spec_group, time_domain_cft_equivalent):
     """ Ensure correct conversion from DFT to CFT """
     conv = gauss_spec_group.to_spectra_type("cft")
     fd = conv.abs().data.max(axis=1)
     np_assert(time_domain_cft_equivalent, fd, rtol=1e-4)