Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pzelasko committed Mar 7, 2024
1 parent 9494c07 commit b7c03a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lhotse/testing/dummies.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def dummy_audio_source(
if len(channels) > 1:
data = data.unsqueeze(0).expand(len(channels), -1).transpose(0, 1)
# ensure each channel has different data for channel selection testing
mults = torch.tensor([1 / idx for idx in range(len(channels))])
mults = torch.tensor([1 / idx for idx in range(1, len(channels) + 1)])
data = data * mults
binary_data = BytesIO()
soundfile.write(
Expand Down

0 comments on commit b7c03a0

Please sign in to comment.