Skip to content

Commit

Permalink
Merge pull request #534 from artpelling/fix-553
Browse files Browse the repository at this point in the history
Fix #533
  • Loading branch information
mberz committed Apr 25, 2024
2 parents 40622ad + 72b577c commit 09ec1ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyfar/classes/audio.py
Expand Up @@ -629,6 +629,12 @@ def __init__(
Austria, May 2020, p. e-Brief 600.
"""
# unpack array
if hasattr(sampling_rate, '__iter__'):
assert len(sampling_rate) != 0
if len(sampling_rate) != 1:
raise ValueError("Multirate signals are not supported.")
sampling_rate = sampling_rate[0]

# initialize signal specific parameters
self._sampling_rate = sampling_rate
Expand Down

0 comments on commit 09ec1ab

Please sign in to comment.