Skip to content

Commit 2d53728

Browse files
committed
fix for python 3.11
1 parent 5689fb9 commit 2d53728

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

qetpy/plotting/_of_nsmb_plotting.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,8 @@ def plotnsmb(pulset, fs, tdelmin, amin, sbTemplatef, nS, nB, nt, psddnu,
8484
# check the chi2
8585
residTf = np.fft.fft(residT, axis=1) / nt
8686
chi2T = np.real(np.sum(np.conj(residTf.T) / psddnu.T * residTf.T, 0))
87-
88-
89-
chi2TFloat = float(chi2T)
87+
88+
chi2TFloat = float(np.asarray(chi2T).item())
9089

9190
# ===Time Domain ==================================================
9291
bins = np.arange(nt)

0 commit comments

Comments
 (0)