Skip to content

Commit

Permalink
cwt comments/edits
Browse files Browse the repository at this point in the history
  • Loading branch information
cyschneck committed Mar 7, 2024
1 parent 28e8b7b commit 00f9a52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pywt/_cwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ def cwt(data, scales, wavelet, sampling_period=1., method='conv', axis=-1):
if not isinstance(wavelet, (ContinuousWavelet, Wavelet)):
wavelet = DiscreteContinuousWavelet(wavelet)

# convert array_like scales to a np.array
if not isinstance(scales, list) and not isinstance(scales, np.ndarray):
raise ValueError("scales should be an array_like, list or np.array)
raise ValueError("scales should be an array_like, list or np.array")
scales = np.asarray(scales)

if not np.isscalar(axis):
Expand Down

0 comments on commit 00f9a52

Please sign in to comment.