MarineBioAcousticsRC / Triton

:whale: Scripps Whale Acoustics Lab :earth_americas: Scripps Acoustic Ecology Lab - Triton with remoras in development
Other
36 stars 25 forks source link

Fixed audioread bug for large sample numbers #69

Open fascimare opened 3 years ago

fascimare commented 3 years ago

Audioread was misreading numbers in scientific notation as decimal numbers. Since it requires integers, this would case it to crash. I fixed it by converting the numbers to int and back again to double.

kfrasier commented 2 years ago

@fascimare any thoughts on what should be done here, re:Marie's comment?

fascimare commented 2 years ago

@kfrasier @marie-r I have looked at the issue when you suggested that fix Marie, and it was 16-bit data. The only way I could get it to work was to do this work-around, but I will give it another go. Stay tuned.

Best, Annebelle