Changed parameter normed to density in np.histogram
This commit is contained in:
parent
d9278eed83
commit
298da3818d
@ -306,7 +306,7 @@ def next_neighbor_distribution(
|
|||||||
)[1]
|
)[1]
|
||||||
resname_nn = reference.residue_names[nn]
|
resname_nn = reference.residue_names[nn]
|
||||||
count_nn = (resname_nn == atoms.residue_names.reshape(-1, 1)).sum(axis=1)
|
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(
|
def hbonds(
|
||||||
|
Loading…
Reference in New Issue
Block a user