8000 Workaround for islice int error in animation.py by braaannigan · Pull Request #8984 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Workaround for islice int error in animation.py #8984

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

Merged
merged 7 commits into from
Aug 8, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
shorten line to < 80
  • Loading branch information
braaannigan committed Aug 8, 2017
commit a4f93e9e95ce9f13472cefec575b83170bdfa01d
2 changes: 1 addition & 1 deletion lib/matplotlib/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@ def __init__(self, fig, func, frames=None, init_func=None, fargs=None,
# itertools.islice can return an error when passed a numpy int instead
# of a native python int. This is a known issue:
# http://bugs.python.org/issue30537
# As a workaround, enforce conversion of save_count to native python int
# As a workaround, convert save_count to native python int
if self.save_count is None:
self.save_count = 100
else:
Expand Down
0