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: don't fail on first show if animation already exhausted #17810

Merged
merged 1 commit into from Aug 6, 2021

Conversation

@tacaswell
Copy link
Member

@tacaswell tacaswell commented Jul 1, 2020

PR Summary

If _init_draw() fails, assume the animation is dead, but do not fail.

closes #17770

I am not sure this is actually the best fix. On one hand, this is elides the problem, but does so by ignoring the problem. There is some poor interaction going on here between the ways access the data sources and how we try to "peek" at the first frame if we are not passed an init function.

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
@tacaswell tacaswell added this to the v3.4.0 milestone Jul 1, 2020
@QuLogic QuLogic modified the milestones: v3.4.0, v3.5.0 Jan 22, 2021
@tacaswell tacaswell force-pushed the tacaswell:fix_exhausted_animations branch from 65d1a19 to 288d438 Aug 5, 2021
@tacaswell tacaswell marked this pull request as ready for review Aug 5, 2021
lib/matplotlib/animation.py Outdated Show resolved Hide resolved
If we need to get the first frame in `_init_draw()` (because the user did not
pass an initialization function) fails, warn instead of raising.

closes #17770
@tacaswell tacaswell force-pushed the tacaswell:fix_exhausted_animations branch from 288d438 to 5471db1 Aug 6, 2021
@QuLogic
QuLogic approved these changes Aug 6, 2021
@QuLogic QuLogic merged commit 9a7329c into matplotlib:master Aug 6, 2021
26 of 27 checks passed
26 of 27 checks passed
@github-actions
flake8
Details
@github-actions
greeting
Details
@github-actions
Python 3.7 on ubuntu-18.04 (Minimum Versions)
Details
@github-actions
Python 3.7 on ubuntu-18.04
Details
@github-actions
Python 3.8 on ubuntu-18.04
Details
@github-actions
Python 3.9 on ubuntu-20.04
Details
@github-actions
Python 3.8 on macos-latest
Details
@github-actions
eslint
Details
@codecov
codecov/project/tests 98.84% (-0.14%) compared to ec126b0
Details
@lgtm-com
LGTM analysis: JavaScript No code changes detected
Details
@github-actions
Check the rendered docs here! Link to 0/doc/build/html/index.html
Details
@lgtm-com
LGTM analysis: Python No new or fixed alerts
Details
ci/circleci: docs-python38 Your tests passed on CircleCI!
Details
@codecov
codecov/patch 95.45% of diff hit (target 50.00%)
Details
@codecov
codecov/project/library 80.63% (target 50.00%)
Details
@appveyor
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
@azure-pipelines
matplotlib.matplotlib Build #20210806.16 succeeded
Details
@azure-pipelines
matplotlib.matplotlib (Check Skip) Check Skip succeeded
Details
@azure-pipelines
matplotlib.matplotlib (Main Pytest Linux_py37) Main Pytest Linux_py37 succeeded
Details
@azure-pipelines
matplotlib.matplotlib (Main Pytest Linux_py38) Main Pytest Linux_py38 succeeded
Details
@azure-pipelines
matplotlib.matplotlib (Main Pytest Linux_py39) Main Pytest Linux_py39 succeeded
Details
@azure-pipelines
matplotlib.matplotlib (Main Pytest Windows_py37) Main Pytest Windows_py37 succeeded
Details
@azure-pipelines
matplotlib.matplotlib (Main Pytest Windows_py38) Main Pytest Windows_py38 succeeded
Details
@azure-pipelines
matplotlib.matplotlib (Main Pytest Windows_py39) Main Pytest Windows_py39 succeeded
Details
@azure-pipelines
matplotlib.matplotlib (Main Pytest macOS_py37) Main Pytest macOS_py37 succeeded
Details
@azure-pipelines
matplotlib.matplotlib (Main Pytest macOS_py38) Main Pytest macOS_py38 succeeded
Details
@azure-pipelines
matplotlib.matplotlib (Main Pytest macOS_py39) Main Pytest macOS_py39 succeeded
Details
@tacaswell tacaswell deleted the tacaswell:fix_exhausted_animations branch Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

5 participants