From 44e9aa6b5b4d114b990781ea40421cfb4409e6ef Mon Sep 17 00:00:00 2001 From: Gregor Lenz Date: Wed, 8 Mar 2023 09:08:34 +0100 Subject: [PATCH] make sure librosa.utils.fix_length is calling data, size and axis --- tonic/audio_transforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tonic/audio_transforms.py b/tonic/audio_transforms.py index e2191722..330feafe 100644 --- a/tonic/audio_transforms.py +++ b/tonic/audio_transforms.py @@ -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