Skip to content

Commit

Permalink
make sure librosa.utils.fix_length is calling data, size and axis
Browse files Browse the repository at this point in the history
  • Loading branch information
biphasic committed Mar 8, 2023
1 parent edd67c7 commit 44e9aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tonic/audio_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class FixLength:
axis: int = 1

def __call__(self, data: np.ndarray):
return librosa.util.fix_length(data, self.length, self.axis)
return librosa.util.fix_length(data=data, size=self.length, axis=self.axis)


@dataclass
Expand Down

0 comments on commit 44e9aa6

Please sign in to comment.