You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This line is meant to drop blocks that don't have enough samples. But since we're working with multiprocessing and are loading block_size * n_jobs, if we have block_size * (n_jobs - 1) + 3, it would drop that entire block instead of just the +3.
Another issue with that line is that it assumes a mono signal, so that's not good either.
The offending line is here:
birdvoxpaint/birdvoxpaint/util.py
Line 80 in a1ecf85
This line is meant to drop blocks that don't have enough samples. But since we're working with multiprocessing and are loading
block_size * n_jobs
, if we haveblock_size * (n_jobs - 1) + 3
, it would drop that entire block instead of just the+3
.Another issue with that line is that it assumes a mono signal, so that's not good either.
A solution could be:
This just makes sure that
y.shape[0]
is divisible byblock_length / n_jobs
The text was updated successfully, but these errors were encountered: