Skip to content

Commit

Permalink
Merge pull request #483 from CSSFrancis/fix_numpy2
Browse files Browse the repository at this point in the history
Numpy 2.0.0 Fixes
  • Loading branch information
CSSFrancis authored Apr 11, 2024
2 parents d7c1b9a + 35cca38 commit e59adeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orix/quaternion/symmetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit e59adeb

Please sign in to comment.