From 94b3413016814663b6c0cb80e20ae11e2dfd2e06 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Thu, 4 Jul 2024 16:25:42 +0200 Subject: [PATCH] Add fix to code --- auglib/core/transform.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/auglib/core/transform.py b/auglib/core/transform.py index 7387129..562882a 100644 --- a/auglib/core/transform.py +++ b/auglib/core/transform.py @@ -2056,6 +2056,10 @@ def _call( signal = self.function(signal, sampling_rate, **args) + # Ensure signal is not read-only + if not signal.flags["WRITEABLE"]: + signal = signal.copy() + return signal