Van Hove - lines for displacements in planes have returns instead of setting delta_r #1

Closed
opened 2024-02-05 16:53:57 +00:00 by robin · 1 comment
Member
if trajectory is None:
    vectors = start_frame - end_frame
else:
    vectors = displacements_without_drift(start_frame, end_frame, trajectory)
if axis == "all":
    delta_r = (vectors**2).sum(axis=1) ** 0.5
elif axis == "xy" or axis == "yx":
     return (vectors[:, [0, 1]]**2).sum(axis=1) ** 0.5    <----------------------
elif axis == "xz" or axis == "zx":
    return (vectors[:, [0, 2]]**2).sum(axis=1) ** 0.5    <----------------------
elif axis == "yz" or axis == "zy":
    return (vectors[:, [1, 2]]**2).sum(axis=1) ** 0.5    <----------------------
elif axis == "x":
    delta_r = np.abs(vectors[:, 0])
if trajectory is None: vectors = start_frame - end_frame else: vectors = displacements_without_drift(start_frame, end_frame, trajectory) if axis == "all": delta_r = (vectors**2).sum(axis=1) ** 0.5 elif axis == "xy" or axis == "yx": return (vectors[:, [0, 1]]**2).sum(axis=1) ** 0.5 <---------------------- elif axis == "xz" or axis == "zx": return (vectors[:, [0, 2]]**2).sum(axis=1) ** 0.5 <---------------------- elif axis == "yz" or axis == "zy": return (vectors[:, [1, 2]]**2).sum(axis=1) ** 0.5 <---------------------- elif axis == "x": delta_r = np.abs(vectors[:, 0])
Member

Thanks. Made a hotfix and updated the enviroment mdevaluate/24.02

Thanks. Made a hotfix and updated the enviroment mdevaluate/24.02
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: IPKM/mdevaluate#1
No description provided.