Skip to content

Commit 3b1f8d5

Browse files
authored
Merge pull request #80 from jcapriot/asarray_copy
Use the `copy()` method instead of `copy` kwarg
2 parents 6dd06bf + 69d8ef7 commit 3b1f8d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

geoana/spatial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,8 @@ def rotation_matrix_from_normals(v0, v1, tol=1e-20, as_matrix=True):
563563
The rotation matrix from v0 to v1, whose type depends on the `as_matrix` parameter.
564564
"""
565565

566-
v0 = np.asarray(v0, dtype=float, copy=True).squeeze()
567-
v1 = np.asarray(v1, dtype=float, copy=True).squeeze()
566+
v0 = np.asarray(v0, dtype=float).copy().squeeze()
567+
v1 = np.asarray(v1, dtype=float).copy().squeeze()
568568

569569
if v0.shape != (3, ):
570570
raise ValueError(f"v0 shape should be (3,), got {v0.shape}")

0 commit comments

Comments
 (0)