Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
adefossez committed Jan 3, 2020
1 parent 9946479 commit 3f480fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demucs/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ def read(self,
# Case 2:
# The caller asked for multiple channels, but the input file have
# one single channel, replicate the audio over all channels.
wav = wav.as_strided(size=(channels, wav.shape[1]), stride = (0,1));
wav = wav.as_strided(size=(channels, wav.shape[1]), stride=(0, 1))
elif self.channels() >= channels:
# Case 3:
# The caller asked for multiple channels, and the input file have
# more channels than requested. In that case return the first channels.
wav = wav[:channels,:];
wav = wav[:channels, :]
else:
# Case 4: What is a reasonable choice here?
raise ValueException('The input file has less channels than requested')
raise ValueError('The input file has less channels than requested')
if target_size is not None:
wav = wav[..., :target_size]
wavs.append(wav)
Expand Down

0 comments on commit 3f480fd

Please sign in to comment.