Switched to numpy histogram
This commit is contained in:
parent
0dd6daa941
commit
b4f9b98876
@ -8,7 +8,7 @@ from functools import partial
|
||||
from scipy.spatial import KDTree
|
||||
|
||||
from .autosave import autosave_data
|
||||
from .utils import coherent_sum, histogram
|
||||
from .utils import coherent_sum
|
||||
from .pbc import pbc_diff, pbc_points
|
||||
from .coordinates import Coordinates, CoordinateFrame, displacements_without_drift
|
||||
|
||||
@ -311,7 +311,7 @@ def van_hove_distinct(
|
||||
)
|
||||
** 2
|
||||
).sum(axis=-1) ** 0.5
|
||||
hist = histogram(dist, bins=bins)[0]
|
||||
hist = np.histogram(dist, bins=bins)[0]
|
||||
return hist / N
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user