Need to implement automated testing and build tests.
https://realpython.com/python-testing/
Test ideas:
- Build theoretical test case (or use spectra you know are good) and ensure transformation to frequency is always the same.
- Test all Spectra/SNP/Spectrum functions - converting to Amplitude from PSD / integration/differentiation and so on
- Test signal-to-noise ratio bandwidth detector is consistent among several 'typical' Signal and Noise pairs
- Test that spectral models give the same results consistently (test a few methods? e.g. Powell's, basinhopping etc.)
Need to implement automated testing and build tests.
https://realpython.com/python-testing/
Test ideas: