Adjusted van_hove_self to better work with shifted_correlation
This commit is contained in:
parent
e91defdc7a
commit
21dcc7641b
@ -264,8 +264,8 @@ def van_hove_self(
|
||||
else:
|
||||
raise ValueError('Parameter axis has to be ether "all", "x", "y", or "z"!')
|
||||
hist = np.histogram(delta_r, bins, range=(bins[0], bins[-1]))[0]
|
||||
r = (bins[1:] + bins[:-1]) / 2
|
||||
return r, hist / len(start_frame)
|
||||
hist = hist / (bins[1:] - bins[:-1])
|
||||
return hist / len(start_frame)
|
||||
|
||||
|
||||
def van_hove_distinct(
|
||||
|
Loading…
Reference in New Issue
Block a user