diff --git a/optics/light.py b/optics/light.py index 6d59547..515ed57 100644 --- a/optics/light.py +++ b/optics/light.py @@ -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