Skip to content

Commit

Permalink
Added explicit ndarray
Browse files Browse the repository at this point in the history
  • Loading branch information
charnley committed Dec 23, 2024
1 parent 7db78fb commit eaccf7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_reorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ def test_reorder_distance() -> None:
def test_reorder_brute() -> None:
N = 5
atoms = np.array(["H"] * N)
p_coord = np.arange(N * 3)
p_coord: ndarray = np.arange(N * 3)
p_coord = p_coord.reshape((N, 3))
q_coord = copy.deepcopy(p_coord)
q_coord = np.array(p_coord, copy=True)

np.random.seed(6)
np.random.shuffle(q_coord)
Expand All @@ -42,7 +42,7 @@ def test_reorder_brute_ch() -> None:
p_atoms_str = ["C"] * 3 + ["H"] * 3
p_atoms_int = [rmsdlib.int_atom(atom) for atom in p_atoms_str]
p_atoms = np.array(p_atoms_int)
p_coord = np.arange(N * 3)
p_coord: ndarray = np.arange(N * 3)
p_coord = p_coord.reshape((N, 3))

# random index
Expand All @@ -66,7 +66,7 @@ def test_reorder_hungarian() -> None:

N = 5
atoms = np.array(["H"] * N)
p_coord = np.arange(N * 3)
p_coord: ndarray = np.arange(N * 3)
p_coord = p_coord.reshape((5, 3))
q_coord = copy.deepcopy(p_coord)

Expand Down

0 comments on commit eaccf7c

Please sign in to comment.