Skip to content

Commit

Permalink
Fix warning for conversion of nan to int
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
  • Loading branch information
psavery committed Jun 12, 2023
1 parent 8355bb5 commit ddcbdf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hexrd/rotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1422,7 +1422,7 @@ def mapAngle(ang, *args, **kwargs):
angRange = atleast_1d(nFloat(args[0]))

# divide of multiples of period
ang = ang - nInt(ang / period) * period
ang = ang - nInt(np.nan_to_num(ang) / period) * period

lb = angRange.min()
ub = angRange.max()
Expand Down

0 comments on commit ddcbdf9

Please sign in to comment.