justinsalamon / scaper

A library for soundscape synthesis and augmentation
BSD 3-Clause "New" or "Revised" License
377 stars 55 forks source link

Replacing sox.file_info calls with soundfile.info(...).duration calls #110

Closed pseeth closed 4 years ago

pseeth commented 4 years ago

This is the second step of #105.

This required a really tiny change to an assert in a test case. That assert uses np.allclose instead of == now to compare floats. This is because soundfile has more accurate duration information.

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 9109ffcbcb9ab1287f33ffc7a5c9b78b44afcdc8 on issue-105-soundfile-info into b23f8aa883a40e85b7942013f8885598cf234062 on issue-105.