From 298da3818d0b822da2bd5f1676e41f1245522741 Mon Sep 17 00:00:00 2001 From: Sebastian Kloth Date: Wed, 31 Jan 2024 09:02:36 +0100 Subject: [PATCH] Changed parameter normed to density in np.histogram --- src/mdevaluate/distribution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mdevaluate/distribution.py b/src/mdevaluate/distribution.py index 44ad500..847d005 100644 --- a/src/mdevaluate/distribution.py +++ b/src/mdevaluate/distribution.py @@ -306,7 +306,7 @@ def next_neighbor_distribution( )[1] resname_nn = reference.residue_names[nn] count_nn = (resname_nn == atoms.residue_names.reshape(-1, 1)).sum(axis=1) - return np.histogram(count_nn, bins=bins, normed=normed)[0] + return np.histogram(count_nn, bins=bins, density=normed)[0] def hbonds(