Skip to content

Commit 95dce27

Browse files
committed
changed sign of x axis for consistency with non-terminal residues
1 parent af6daa2 commit 95dce27

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎CodeEntropy/levels/axes.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def get_residue_axes(
206206
else:
207207
rot_center = (edges[0] + edges[1]) / 2
208208
rot_axes = self.get_custom_axes(
209-
a=rot_center, b=[edges[1]], c=np.zeros(3)
209+
a=rot_center, b=[edges[0]], c=np.zeros(3)
210210
)
211211

212212
moment_of_inertia = self.get_custom_residue_moment_of_inertia(
@@ -422,7 +422,7 @@ def get_UA_axes(self, data_container, index: int, res_position):
422422
else:
423423
trans_center = (edges[0] + edges[1]) / 2
424424
trans_axes = self.get_custom_axes(
425-
a=trans_center, b=[edges[1]], c=np.zeros(3)
425+
a=trans_center, b=[edges[0]], c=np.zeros(3)
426426
)
427427

428428
# look for heavy atoms in residue of interest

0 commit comments

Comments
 (0)