Skip to content

Commit

Permalink
change coefs dtype to account for large squares overflowing (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeEfstathiadis authored Feb 22, 2024
1 parent 02c4a6c commit e0bfab4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions forest/oak/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def compute_interpolate_cwt(tapered_bout: np.ndarray, fs: int = 10,
out = ssq_cwt(tapered_bout[:-1], wavelet, fs=10)
coefs = out[0]
coefs = np.append(coefs, coefs[:, -1:], 1)
coefs = coefs.astype('complex128')

# magnitude of cwt
coefs = np.abs(coefs**2)
Expand Down

0 comments on commit e0bfab4

Please sign in to comment.