Closed cwitkowitz closed 1 year ago
helpers_test.py
to the tests directoryhelper_tests.get_ref_test_Signal
Signal.log_envelop
test have the same checks as Signal.envelop
when possibleSignal.old_plot
and removed the Signal.peaks_old
method as it was not usedutils.py
if __name__ == '__main__':
in test_SoundPack.py
utils.load_wav
Sound.bin_divide
call in testSoundPack
plot functionsThanks for addressing these comments. Note that an outdated copy of helpers_test.py
is still located under the main package and I believe this is the version that documentation is being generated from.
helper_tests.py
as part of the main package.helper_tests.get_ref_test_Signal
. Just make it known that it represents a signal with known features for unit testing.test_Signal.test_Signal_envelop_time
is 2? This seems arbitrary.test_Signal.test_Signal_log_envelop_time
with respect to those conducted intest_Signal.test_Signal_envelop
andtest_Signal.test_Signal_envelop_time
.Signal.old_plot
orSignal.peaks_old
.Signal.save_wav
intest_Signal.test_save_signal
, it would be nice to testutils.load_wav
to verify the signal is preserved. There should also probably be unit tests for other functions inutils.py
.test_Sound.test_Sound_bin_divide
does not actually test or callSound.bin_divide
.SoundPack
plotting functions (i.e.,freq_bin_plot
,combine_envelop
,fundamentals
,integral_plot
,bin_power_table
,bin_power_hist
,listen
,compare_peaks
,fft_mirror
,fft_diff
,integral_compare
,coherence_plot
).if __name__ == '__main__':
included intest_SoundPack.py
. While it doesn't seem to be necessary to run the unit tests, it is inconsistent with the other files.