Skip to content

Commit

Permalink
cast loaded sounds to float64
Browse files Browse the repository at this point in the history
  • Loading branch information
mscheltienne committed Jul 7, 2022
1 parent 081846e commit c2ea95a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stimuli/audio/sound.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def _check_signal(
the _set_signal method.
"""
assert signal.ndim in (1, 2)
signal = signal.astype(np.float64)
if signal.ndim == 2:
assert signal.shape[1] in (1, 2)
if signal.shape[1] == 1:
Expand Down

0 comments on commit c2ea95a

Please sign in to comment.