Skip to content

Commit

Permalink
Add fix to code
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Jul 4, 2024
1 parent 0ac72df commit 94b3413
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions auglib/core/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 94b3413

Please sign in to comment.