Changed parameter normed to density in np.histogram

This commit is contained in:
Sebastian Kloth 2024-01-31 09:02:36 +01:00
parent d9278eed83
commit 298da3818d

View File

@ -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(