Skip to content
Snippets Groups Projects
Commit 4da897ff authored by Kipp Cannon's avatar Kipp Cannon
Browse files

mkwhitened_multirate_src(): input checking

- check that psd_fft_length is an integer
parent e64d864d
No related branches found
No related tags found
No related merge requests found
......@@ -162,6 +162,9 @@ def mkwhitened_multirate_src(pipeline, src, rates, instrument, psd = None, psd_f
if psd is None and not track_psd:
raise ValueError("must enable track_psd when psd is None")
if int(psd_fft_length) != psd_fft_length:
raise ValueError("psd_fft_length must be an integer")
psd_fft_length = int(psd_fft_length)
#
# set default whitener zero-padding if needed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment