From 35cca3899cbf6627c48bafd12e054eee11569336 Mon Sep 17 00:00:00 2001 From: Carter Francis Date: Wed, 10 Apr 2024 16:56:37 -0500 Subject: [PATCH] Bugfix: numpy.infty to np.inf --- orix/quaternion/symmetry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orix/quaternion/symmetry.py b/orix/quaternion/symmetry.py index 00385773..1e940255 100644 --- a/orix/quaternion/symmetry.py +++ b/orix/quaternion/symmetry.py @@ -417,7 +417,7 @@ def get_axis_orders(self) -> Dict[Vector3d, int]: def get_highest_order_axis(self) -> Tuple[Vector3d, np.ndarray]: axis_orders = self.get_axis_orders() if len(axis_orders) == 0: - return Vector3d.zvector(), np.infty + return Vector3d.zvector(), np.inf highest_order = max(axis_orders.values()) axes = Vector3d.stack( [ao for ao in axis_orders if axis_orders[ao] == highest_order]