Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-42719: Handle nan rotation angles in plotting #79

Merged
merged 1 commit into from Feb 1, 2024

Conversation

mfisherlevine
Copy link
Contributor

No description provided.

'E',
color='green', fontsize=fontsize, weight='bold')

if not np.isnan(rotpa): # need a rotation angle for the compass
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incredibly, I have a comment on a two-line PR... does it make sense for this and the check below to be if np.isinfinite(rotpa) instead? I suppose you don't need to check if it's between 0 and 2pi.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Errr, yeah, I guess. Honestly, I'd just never contemplated that they could be +/- inf, but I guess it doesn't hurt to use isfinite instead.

@mfisherlevine mfisherlevine changed the title DM-42719: Check rotPa and rotAzEl are not nan when adding compass DM-42719: Handle nan rotation angles in plotting Feb 1, 2024
@mfisherlevine mfisherlevine merged commit eb98f29 into main Feb 1, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants