fix type error

This commit is contained in:
Michele Guerini Rocco 2018-03-18 18:00:18 +00:00
parent 3e5212c36c
commit 89b5b43d1f
Signed by: rnhmjoj
GPG Key ID: 91BE884FBA4B591A

View File

@ -129,7 +129,7 @@ x = np.linspace(ds.min-1e-3, ds.max+1e-3, 300)
gauss = mlab.normpdf(x, ds.mean, ds.std)
# χ² test
O, B, _ = plt.hist(ds, bins=6, normed=1, facecolor='#506d72')
O, B, _ = plt.hist(np.asarray(ds), bins=6, normed=1, facecolor='#506d72')
alpha = chi_squared(ds, O, B)
print('''
# Δs histogram