From f0fc42f11e13586b9aac39a17ac82b05cb122b2d Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 25 Jun 2020 15:44:51 -0400 Subject: [PATCH 1/2] BUG: Convert from str to writer --- lib/matplotlib/animation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/matplotlib/animation.py b/lib/matplotlib/animation.py index 418231c11a2f..8d70aa302aa1 100644 --- a/lib/matplotlib/animation.py +++ b/lib/matplotlib/animation.py @@ -1106,6 +1106,8 @@ def func(current_frame: int, total_frames: int) -> Any "save animations.") _log.warning("MovieWriter %s unavailable; trying to use %s " "instead.", writer, alt_writer) + if isinstance(alt_writer, str): + alt_writer = writers[alt_writer] writer = alt_writer( fps, codec, bitrate, extra_args=extra_args, metadata=metadata) From 8754deb72a95a0d57dd93d26ad10bfa3e0cf356f Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 25 Jun 2020 16:10:57 -0400 Subject: [PATCH 2/2] BUG: Always str --- lib/matplotlib/animation.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/matplotlib/animation.py b/lib/matplotlib/animation.py index 8d70aa302aa1..a32979888e05 100644 --- a/lib/matplotlib/animation.py +++ b/lib/matplotlib/animation.py @@ -1106,8 +1106,7 @@ def func(current_frame: int, total_frames: int) -> Any "save animations.") _log.warning("MovieWriter %s unavailable; trying to use %s " "instead.", writer, alt_writer) - if isinstance(alt_writer, str): - alt_writer = writers[alt_writer] + alt_writer = writers[alt_writer] writer = alt_writer( fps, codec, bitrate, extra_args=extra_args, metadata=metadata) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy