Skip to content

Commit 2b2b3a9

Browse files
committed
changed UA axes tests to include new parameter relevant for new UA axes
1 parent 98a3987 commit 2b2b3a9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/unit/CodeEntropy/levels/test_axes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def _select_atoms(q):
109109
lambda moi: (np.eye(3), np.array([3.0, 2.0, 1.0])),
110110
)
111111

112-
trans, rot, center, moi = ax.get_residue_axes(u, index=7)
112+
trans, rot, center, moi = ax.get_residue_axes(u, index=7, residue=None)
113113

114114
assert np.allclose(trans, np.eye(3))
115115
assert np.allclose(rot, np.eye(3))
@@ -144,7 +144,7 @@ def _select_atoms(q):
144144
ax, "get_vanilla_axes", lambda mol: (np.eye(3) * 2, np.array([9.0, 8.0, 7.0]))
145145
)
146146

147-
trans, rot, center, moi = ax.get_residue_axes(u, index=10)
147+
trans, rot, center, moi = ax.get_residue_axes(u, index=10, residue=None)
148148

149149
assert np.allclose(trans, np.eye(3))
150150
assert np.allclose(rot, np.eye(3) * 2)
@@ -184,7 +184,7 @@ def _sel(q):
184184
lambda system, atom, dimensions: (np.eye(3), np.array([1.0, 2.0, 3.0])),
185185
)
186186

187-
trans, rot, center, moi = ax.get_UA_axes(u, index=0)
187+
trans, rot, center, moi = ax.get_UA_axes(u, index=0, res_position=None)
188188

189189
assert np.allclose(trans, np.eye(3))
190190
assert np.allclose(rot, np.eye(3))

0 commit comments

Comments
 (0)