From 411166b7f4b277ea95d58767a9187862b8254b3d Mon Sep 17 00:00:00 2001 From: Carlos Hernandez Date: Wed, 14 Jan 2015 11:37:40 -0800 Subject: [PATCH] conv2float --- dihedral_tent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dihedral_tent.py b/dihedral_tent.py index 9ca61d3..d023687 100755 --- a/dihedral_tent.py +++ b/dihedral_tent.py @@ -34,18 +34,18 @@ def ent(H): def ent1D(X, r=rbins()): - H = np.histogram(X, r)[0] + H = np.histogram(X, r)[0].astype(float) return ent(H) def ent2D(X, Y, r=rbins()): - H = np.histogram2d(X, Y, 2*[r])[0] + H = np.histogram2d(X, Y, 2*[r])[0].astype(float) return ent(H) def ent3D(X, Y, Z, r=rbins()): W = np.vstack((X, Y, Z)).T - H = np.histogramdd(W, 3*[r])[0] + H = np.histogramdd(W, 3*[r])[0].astype(float) return ent(H)