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

Fix ylim setting by LineAnimator #4554

Merged
merged 2 commits into from
Nov 15, 2020

Conversation

DanRyanIrish
Copy link
Member

This PR fixes a bug which occurs in setting the ylims by LineAnimator when there are non-finite values in the data array to be animated.

@DanRyanIrish DanRyanIrish requested a review from a team as a code owner October 9, 2020 15:33
@nabobalis nabobalis added this to the 2.1 milestone Oct 9, 2020
@dstansby
Copy link
Member

dstansby commented Oct 9, 2020

Could you use nanmin and nanmax instead? Should make the code a little simpler.

@nabobalis nabobalis modified the milestone: 2.1 Oct 21, 2020
DanRyanIrish and others added 2 commits November 15, 2020 12:03
Bug occurred when some data in the array to be animated was not finite.
@nabobalis
Copy link
Contributor

Could you use nanmin and nanmax instead? Should make the code a little simpler.

I have updated the PR with some tests. See if it is satisfactory.

@nabobalis nabobalis added the Needs Review Needs reviews before merge. label Nov 15, 2020
@dstansby dstansby added this to the 2.1 milestone Nov 15, 2020
@dstansby dstansby merged commit edb272c into sunpy:master Nov 15, 2020
@dstansby dstansby removed the Needs Review Needs reviews before merge. label Jan 24, 2022
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.

5 participants