Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix CLI bugs (#1431)

Jason Villanueva7248cf584ae9
diff --git a/docs/source/manim_directive.py b/docs/source/manim_directive.py
index d049b6c1d..202f6abf2 100644
--- a/docs/source/manim_directive.py
+++ b/docs/source/manim_directive.py
@@ -218,10 +218,13 @@ class ManimDirective(Directive):
f'config["pixel_height"] = {pixel_height}',
f'config["pixel_width"] = {pixel_width}',
f'config["save_last_frame"] = {save_last_frame}',
- f'config["save_as_gif"] = {save_as_gif}',
f'config["write_to_movie"] = {not save_last_frame}',
f'config["output_file"] = r"{output_file}"',
]
+ if save_last_frame:
+ config_code.append('config["format"] = None')
+ if save_as_gif:
+ config_code.append('config["format"] = "gif"')
user_code = self.content
if user_code[0].startswith(">>> "): # check whether block comes from doctest
diff --git a/manim/__main__.py b/manim/__main__.py
index 277c8be0f..8e8c9fba1 100644
--- a/manim/__main__.py
+++ b/manim/__main__.py
@@ -7,7 +7,7 @@ from . import __version__, console
from .cli.cfg.commands import cfg
from .cli.plugins.commands import plugins
from .cli.render.commands import render
-from .constants import CONTEXT_SETTINGS, EPILOG
+from .constants import EPILOG
def exit_early(ctx, param, value):
@@ -22,7 +22,6 @@ console.print(f"Manim Community [green]v{__version__}[/green]\n")
cls=DefaultGroup,
default="render",
no_args_is_help=True,
- context_settings=CONTEXT_SETTINGS,
help="Animation engine for explanatory math videos",
epilog=EPILOG,
)
diff --git a/manim/_config/default.cfg b/manim/_config/default.cfg
index e00058895..ace1f0d10 100644
--- a/manim/_config/default.cfg
+++ b/manim/_config/default.cfg
@@ -20,6 +20,8 @@ notify_outdated_version = True
# -w, --write_to_movie
write_to_movie = True
+format = mp4
+
# -s, --save_last_frame
# setting save_last_frame to True forces write_to_movie to False
save_last_frame = False
diff --git a/manim/_config/utils.py b/manim/_config/utils.py
index 2fba88084..f861a2429 100644
--- a/manim/_config/utils.py
+++ b/manim/_config/utils.py
@@ -244,6 +244,7 @@ class ManimConfig(MutableMapping):
"custom_folders",
"disable_caching",
"ffmpeg_loglevel",
+ "format",
"flush_cache",
"frame_height",
"frame_rate",
@@ -261,6 +262,7 @@ class ManimConfig(MutableMapping):
"media_dir",
"movie_file_extension",
"notify_outdated_version",
+ "output_file",
"partial_movie_dir",
"pixel_height",
"pixel_width",
@@ -626,6 +628,7 @@ class ManimConfig(MutableMapping):
"save_as_gif",
"write_all",
"disable_caching",
+ "format",
"flush_cache",
"progress_bar",
"transparent",
@@ -660,7 +663,6 @@ class ManimConfig(MutableMapping):
if attr is not None:
self[key] = attr
- # The -s (--save_last_frame) flag invalidates -w (--write_to_movie).
if self["save_last_frame"]:
self["write_to_movie"] = False
@@ -842,6 +844,20 @@ class ManimConfig(MutableMapping):
)
logging.getLogger("manim").setLevel(val)
+ @property
+ def format(self):
+ """File format; "png", "gif", "mp4", or "mov"."""
+ return self._d["format"]
+
+ @format.setter
+ def format(self, val: str) -> None:
+ """File format the renderer will output."""
+ self._set_from_list(
+ "format",
+ val,
+ [None, "png", "gif", "mp4", "mov"],
+ )
+
ffmpeg_loglevel = property(
lambda self: self._d["ffmpeg_loglevel"],
lambda self, val: self._set_from_list(
diff --git a/manim/cli/render/commands.py b/manim/cli/render/commands.py
index e8a0dfa32..7ef24943d 100644
--- a/manim/cli/render/commands.py
+++ b/manim/cli/render/commands.py
@@ -25,7 +25,7 @@ from .render_options import render_options
@cloup.command(
- context_settings=CONTEXT_SETTINGS,
+ context_settings=None,
epilog=EPILOG,
)
@click.argument("file", type=Path, required=True)
@@ -34,9 +34,7 @@ from .render_options import render_options
@output_options
@render_options
@ease_of_access_options
def render(
- ctx,
**args,
):
"""Render SCENE(S) from the input FILE.
@@ -71,18 +69,31 @@ def render(
logger.warning(
"--use_opengl_renderer is deprecated, please use --renderer=opengl instead!"
)
- renderer = "opengl"
+ args["renderer"] = "opengl"
if args["use_webgl_renderer"]:
logger.warning(
"--use_webgl_renderer is deprecated, please use --renderer=webgl instead!"
)
- renderer = "webgl"
+ args["renderer"] = "webgl"
if args["use_webgl_renderer"] and args["use_opengl_renderer"]:
logger.warning("You may select only one renderer!")
sys.exit()
+ if args["save_as_gif"]:
+ logger.warning("--save_as_gif is deprecated, please use --format=gif instead!")
+ args["format"] = "gif"
+
+ if args["save_pngs"]:
+ logger.warning("--save_pngs is deprecated, please use --format=png instead!")
+ args["format"] = "png"
+
+ if args["show_in_file_browser"]:
+ logger.warning(
+ "The short form of show_in_file_browser is deprecated and will be moved to support --format."
+ )
+
class ClickArgs:
def __init__(self, args):
for name in args:
diff --git a/manim/cli/render/output_options.py b/manim/cli/render/output_options.py
index 3f9f1251a..6eb6484d8 100644
--- a/manim/cli/render/output_options.py
+++ b/manim/cli/render/output_options.py
@@ -6,7 +6,7 @@ output_options = option_group(
option(
"-o",
"--output_file",
- multiple=True,
+ type=str,
help="Specify the filename(s) of the rendered scene(s).",
),
option(
diff --git a/manim/cli/render/render_options.py b/manim/cli/render/render_options.py
index b560178e5..8cd8b4dc8 100644
--- a/manim/cli/render/render_options.py
+++ b/manim/cli/render/render_options.py
@@ -51,10 +51,7 @@ render_options = option_group(
help="Render all scenes in the input file.",
),
option(
- "-f",
"--format",
- "file_format",
- default="mp4",
type=click.Choice(["png", "gif", "mp4"], case_sensitive=False),
),
option("-s", "--save_last_frame", is_flag=True),
@@ -106,6 +103,27 @@ render_options = option_group(
type=click.Path(),
help="The path to the WebGL frontend.",
),
+ option(
+ "-g",
+ "--save_pngs",
+ is_flag=True,
+ default=None,
+ help="Save each frame as png (Deprecated).",
+ ),
+ option(
+ "-i",
+ "--save_as_gif",
+ default=None,
+ is_flag=True,
+ help="Save as a gif (Deprecated).",
+ ),
+ option(
+ "-s",
+ "--save_last_frame",
+ default=None,
+ is_flag=True,
+ help="Save last frame as png (Deprecated).",
+ ),
option(
"-t", "--transparent", is_flag=True, help="Render scenes with alpha channel."
),
diff --git a/manim/scene/scene.py b/manim/scene/scene.py
index 36f370200..cd1f2b792 100644
--- a/manim/scene/scene.py
+++ b/manim/scene/scene.py
@@ -209,7 +209,11 @@ class Scene(Container):
self.renderer.scene_finished(self)
# Show info only if animations are rendered or to get image
- if self.renderer.num_plays or config["save_last_frame"] or config["save_pngs"]:
+ if (
+ self.renderer.num_plays
+ or config["format"] == "png"
+ or config["save_last_frame"]
+ ):
logger.info(
f"Rendered {str(self)}\nPlayed {self.renderer.num_plays} animations"
)
diff --git a/manim/scene/scene_file_writer.py b/manim/scene/scene_file_writer.py
index 1e092d078..e50706215 100644
--- a/manim/scene/scene_file_writer.py
+++ b/manim/scene/scene_file_writer.py
@@ -97,7 +97,7 @@ class SceneFileWriter(object):
default_name, config["movie_file_extension"]
),
)
- if config["save_as_gif"]:
+ if config["format"] == "gif":
self.gif_file_path = os.path.join(
movie_dir,
add_extension_if_not_present(default_name, GIF_FILE_EXTENSION),
@@ -287,7 +287,7 @@ class SceneFileWriter(object):
frame = frame_or_renderer
if config["write_to_movie"]:
self.writing_process.stdin.write(frame.tobytes())
- if config["save_pngs"]:
+ if config["format"] == "png":
path, extension = os.path.splitext(self.image_file_path)
Image.fromarray(frame).save(f"{path}{self.frame_count}{extension}")
self.frame_count += 1
@@ -474,10 +474,10 @@ class SceneFileWriter(object):
"-nostdin",
]
- if config["write_to_movie"] and not config["save_as_gif"]:
+ if config["write_to_movie"] and not config["format"] == "gif":
commands += ["-c", "copy", movie_file_path]
- if config["save_as_gif"]:
+ if config["format"] == "gif":
if not config["output_file"]:
self.gif_file_path = str(
add_version_before_extension(self.gif_file_path)
diff --git a/manim/utils/file_ops.py b/manim/utils/file_ops.py
index de907e295..d69e1293b 100644
--- a/manim/utils/file_ops.py
+++ b/manim/utils/file_ops.py
@@ -84,9 +84,9 @@ def open_media_file(file_writer):
if config["save_last_frame"]:
file_paths.append(file_writer.image_file_path)
- if config["write_to_movie"] and not config["save_as_gif"]:
+ if config["write_to_movie"] and not config["format"] == "gif":
file_paths.append(file_writer.movie_file_path)
- if config["save_as_gif"]:
+ if config["format"] == "gif":
file_paths.append(file_writer.gif_file_path)
for file_path in file_paths:
diff --git a/poetry.lock b/poetry.lock
index 8e88af6c7..81469af7a 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -173,6 +173,14 @@ packaging = "*"
six = ">=1.9.0"
webencodings = "*"
+[[package]]
+name = "certifi"
+version = "2020.12.5"
+description = "Python package for providing Mozilla's CA Bundle."
+category = "main"
+optional = false
+python-versions = "*"
+
[[package]]
name = "cffi"
version = "1.14.5"
@@ -192,6 +200,14 @@ category = "dev"
optional = false
python-versions = ">=3.6.1"
+[[package]]
+name = "chardet"
+version = "4.0.0"
+description = "Universal encoding detector for Python 2 and 3"
+category = "main"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+
[[package]]
name = "click"
version = "7.1.2"
@@ -344,7 +360,7 @@ python-versions = "*"
[[package]]
name = "docutils"
-version = "0.17.1"
+version = "0.16"
description = "Docutils -- Python Documentation Utilities"
category = "dev"
optional = false
@@ -466,11 +482,11 @@ license = ["editdistance-s"]
[[package]]
name = "idna"
-version = "3.1"
+version = "2.10"
description = "Internationalized Domain Names in Applications (IDNA)"
category = "main"
-optional = true
-python-versions = ">=3.4"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
[[package]]
name = "imagesize"
@@ -1488,14 +1504,20 @@ python-versions = "*"
[[package]]
name = "requests"
-version = "2.15.1"
+version = "2.25.1"
description = "Python HTTP for Humans."
category = "main"
optional = false
-python-versions = "*"
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+
+[package.dependencies]
+certifi = ">=2017.4.17"
+chardet = ">=3.0.2,<5"
+idna = ">=2.5,<3"
+urllib3 = ">=1.21.1,<1.27"
[package.extras]
-security = ["cryptography (>=1.3.4)", "idna (>=2.0.0)", "pyOpenSSL (>=0.14)"]
+security = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)"]
socks = ["PySocks (>=1.5.6,!=1.5.7)", "win-inet-pton"]
[[package]]
@@ -1580,7 +1602,7 @@ python-versions = ">=3.6"
[[package]]
name = "sphinx"
-version = "3.5.3"
+version = "3.5.4"
description = "Python documentation generator"
category = "dev"
optional = false
@@ -1590,7 +1612,7 @@ python-versions = ">=3.5"
alabaster = ">=0.7,<0.8"
babel = ">=1.3"
colorama = {version = ">=0.3.5", markers = "sys_platform == \"win32\""}
-docutils = ">=0.12"
+docutils = ">=0.12,<0.17"
imagesize = "*"
Jinja2 = ">=2.3"
packaging = "*"
@@ -1801,6 +1823,19 @@ category = "main"
optional = false
python-versions = "*"
+[[package]]
+name = "urllib3"
+version = "1.26.4"
+description = "HTTP library with thread-safe connection pooling, file post, and more."
+category = "main"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4"
+
+[package.extras]
+secure = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "certifi", "ipaddress"]
+socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"]
+brotli = ["brotlipy (>=0.6.0)"]
+
[[package]]
name = "virtualenv"
version = "20.4.4"
@@ -1875,7 +1910,7 @@ webgl_renderer = ["grpcio", "grpcio-tools"]
[metadata]
lock-version = "1.1"
python-versions = "^3.6.2"
-content-hash = "f601fd7ab4e9eededc98e4881891e62f29605b72c2d538acc9a6d23096440e9b"
+content-hash = "6a5893c04232ce6f983ebd8abc432406f053bc86ef83e0d1be0898648d22b6df"
[metadata.files]
alabaster = [
@@ -1950,6 +1985,10 @@ bleach = [
{file = "bleach-3.3.0-py2.py3-none-any.whl", hash = "sha256:6123ddc1052673e52bab52cdc955bcb57a015264a1c57d37bea2f6b817af0125"},
{file = "bleach-3.3.0.tar.gz", hash = "sha256:98b3170739e5e83dd9dc19633f074727ad848cbedb6026708c8ac2d3b697a433"},
]
+certifi = [
+ {file = "certifi-2020.12.5-py2.py3-none-any.whl", hash = "sha256:719a74fb9e33b9bd44cc7f3a8d94bc35e4049deebe19ba7d8e108280cfd59830"},
+ {file = "certifi-2020.12.5.tar.gz", hash = "sha256:1a4995114262bffbc2413b159f2a1a480c969de6e6eb13ee966d470af86af59c"},
+]
cffi = [
{file = "cffi-1.14.5-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:bb89f306e5da99f4d922728ddcd6f7fcebb3241fc40edebcb7284d7514741991"},
{file = "cffi-1.14.5-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:34eff4b97f3d982fb93e2831e6750127d1355a923ebaeeb565407b3d2f8d41a1"},
@@ -1993,6 +2032,10 @@ cfgv = [
{file = "cfgv-3.2.0-py2.py3-none-any.whl", hash = "sha256:32e43d604bbe7896fe7c248a9c2276447dbef840feb28fe20494f62af110211d"},
{file = "cfgv-3.2.0.tar.gz", hash = "sha256:cf22deb93d4bcf92f345a5c3cd39d3d41d6340adc60c78bbbd6588c384fda6a1"},
]
+chardet = [
+ {file = "chardet-4.0.0-py2.py3-none-any.whl", hash = "sha256:f864054d66fd9118f2e67044ac8981a54775ec5b67aed0441892edb553d21da5"},
+ {file = "chardet-4.0.0.tar.gz", hash = "sha256:0d6f53a15db4120f2b08c94f11e7d93d2c911ee118b6b30a04ec3ee8310179fa"},
+]
click = [
{file = "click-7.1.2-py2.py3-none-any.whl", hash = "sha256:dacca89f4bfadd5de3d7489b7c8a566eee0d3676333fbb50030263894c38c0dc"},
{file = "click-7.1.2.tar.gz", hash = "sha256:d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a"},
@@ -2102,8 +2145,8 @@ distlib = [
{file = "distlib-0.3.1.zip", hash = "sha256:edf6116872c863e1aa9d5bb7cb5e05a022c519a4594dc703843343a9ddd9bff1"},
]
docutils = [
- {file = "docutils-0.17.1-py2.py3-none-any.whl", hash = "sha256:cf316c8370a737a022b72b56874f6602acf974a37a9fba42ec2876387549fc61"},
- {file = "docutils-0.17.1.tar.gz", hash = "sha256:686577d2e4c32380bb50cbb22f575ed742d58168cee37e99117a854bcd88f125"},
+ {file = "docutils-0.16-py2.py3-none-any.whl", hash = "sha256:0c5b78adfbf7762415433f5515cd5c9e762339e23369dbe8000d84a4bf4ab3af"},
+ {file = "docutils-0.16.tar.gz", hash = "sha256:c2de3a60e9e7d07be26b7f2b00ca0309c207e06c100f9cc2a94931fc75a478fc"},
]
entrypoints = [
{file = "entrypoints-0.3-py2.py3-none-any.whl", hash = "sha256:589f874b313739ad35be6e0cd7efde2a4e9b6fea91edcc34e58ecbb8dbe56d19"},
@@ -2256,8 +2299,8 @@ identify = [
{file = "identify-2.2.4.tar.gz", hash = "sha256:9bcc312d4e2fa96c7abebcdfb1119563b511b5e3985ac52f60d9116277865b2e"},
]
idna = [
- {file = "idna-3.1-py3-none-any.whl", hash = "sha256:5205d03e7bcbb919cc9c19885f9920d622ca52448306f2377daede5cf3faac16"},
- {file = "idna-3.1.tar.gz", hash = "sha256:c5b02147e01ea9920e6b0a3f1f7bb833612d507592c837a6c49552768f4054e1"},
+ {file = "idna-2.10-py2.py3-none-any.whl", hash = "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0"},
+ {file = "idna-2.10.tar.gz", hash = "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6"},
]
imagesize = [
{file = "imagesize-1.2.0-py2.py3-none-any.whl", hash = "sha256:6965f19a6a2039c7d48bca7dba2473069ff854c36ae6f19d2cde309d998228a1"},
@@ -2486,39 +2529,20 @@ markupsafe = [
{file = "MarkupSafe-1.1.1-cp35-cp35m-win32.whl", hash = "sha256:6dd73240d2af64df90aa7c4e7481e23825ea70af4b4922f8ede5b9e35f78a3b1"},
{file = "MarkupSafe-1.1.1-cp35-cp35m-win_amd64.whl", hash = "sha256:9add70b36c5666a2ed02b43b335fe19002ee5235efd4b8a89bfcf9005bebac0d"},
{file = "MarkupSafe-1.1.1-cp36-cp36m-macosx_10_6_intel.whl", hash = "sha256:24982cc2533820871eba85ba648cd53d8623687ff11cbb805be4ff7b4c971aff"},
- {file = "MarkupSafe-1.1.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d53bc011414228441014aa71dbec320c66468c1030aae3a6e29778a3382d96e5"},
{file = "MarkupSafe-1.1.1-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:00bc623926325b26bb9605ae9eae8a215691f33cae5df11ca5424f06f2d1f473"},
{file = "MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:717ba8fe3ae9cc0006d7c451f0bb265ee07739daf76355d06366154ee68d221e"},
- {file = "MarkupSafe-1.1.1-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:3b8a6499709d29c2e2399569d96719a1b21dcd94410a586a18526b143ec8470f"},
- {file = "MarkupSafe-1.1.1-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:84dee80c15f1b560d55bcfe6d47b27d070b4681c699c572af2e3c7cc90a3b8e0"},
- {file = "MarkupSafe-1.1.1-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:b1dba4527182c95a0db8b6060cc98ac49b9e2f5e64320e2b56e47cb2831978c7"},
{file = "MarkupSafe-1.1.1-cp36-cp36m-win32.whl", hash = "sha256:535f6fc4d397c1563d08b88e485c3496cf5784e927af890fb3c3aac7f933ec66"},
{file = "MarkupSafe-1.1.1-cp36-cp36m-win_amd64.whl", hash = "sha256:b1282f8c00509d99fef04d8ba936b156d419be841854fe901d8ae224c59f0be5"},
{file = "MarkupSafe-1.1.1-cp37-cp37m-macosx_10_6_intel.whl", hash = "sha256:8defac2f2ccd6805ebf65f5eeb132adcf2ab57aa11fdf4c0dd5169a004710e7d"},
- {file = "MarkupSafe-1.1.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:bf5aa3cbcfdf57fa2ee9cd1822c862ef23037f5c832ad09cfea57fa846dec193"},
{file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:46c99d2de99945ec5cb54f23c8cd5689f6d7177305ebff350a58ce5f8de1669e"},
{file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:ba59edeaa2fc6114428f1637ffff42da1e311e29382d81b339c1817d37ec93c6"},
- {file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:6fffc775d90dcc9aed1b89219549b329a9250d918fd0b8fa8d93d154918422e1"},
- {file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:a6a744282b7718a2a62d2ed9d993cad6f5f585605ad352c11de459f4108df0a1"},
- {file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:195d7d2c4fbb0ee8139a6cf67194f3973a6b3042d742ebe0a9ed36d8b6f0c07f"},
{file = "MarkupSafe-1.1.1-cp37-cp37m-win32.whl", hash = "sha256:b00c1de48212e4cc9603895652c5c410df699856a2853135b3967591e4beebc2"},
{file = "MarkupSafe-1.1.1-cp37-cp37m-win_amd64.whl", hash = "sha256:9bf40443012702a1d2070043cb6291650a0841ece432556f784f004937f0f32c"},
{file = "MarkupSafe-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:6788b695d50a51edb699cb55e35487e430fa21f1ed838122d722e0ff0ac5ba15"},
{file = "MarkupSafe-1.1.1-cp38-cp38-manylinux1_i686.whl", hash = "sha256:cdb132fc825c38e1aeec2c8aa9338310d29d337bebbd7baa06889d09a60a1fa2"},
{file = "MarkupSafe-1.1.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:13d3144e1e340870b25e7b10b98d779608c02016d5184cfb9927a9f10c689f42"},
- {file = "MarkupSafe-1.1.1-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:acf08ac40292838b3cbbb06cfe9b2cb9ec78fce8baca31ddb87aaac2e2dc3bc2"},
- {file = "MarkupSafe-1.1.1-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:d9be0ba6c527163cbed5e0857c451fcd092ce83947944d6c14bc95441203f032"},
- {file = "MarkupSafe-1.1.1-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:caabedc8323f1e93231b52fc32bdcde6db817623d33e100708d9a68e1f53b26b"},
{file = "MarkupSafe-1.1.1-cp38-cp38-win32.whl", hash = "sha256:596510de112c685489095da617b5bcbbac7dd6384aeebeda4df6025d0256a81b"},
{file = "MarkupSafe-1.1.1-cp38-cp38-win_amd64.whl", hash = "sha256:e8313f01ba26fbbe36c7be1966a7b7424942f670f38e666995b88d012765b9be"},
- {file = "MarkupSafe-1.1.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:d73a845f227b0bfe8a7455ee623525ee656a9e2e749e4742706d80a6065d5e2c"},
- {file = "MarkupSafe-1.1.1-cp39-cp39-manylinux1_i686.whl", hash = "sha256:98bae9582248d6cf62321dcb52aaf5d9adf0bad3b40582925ef7c7f0ed85fceb"},
- {file = "MarkupSafe-1.1.1-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:2beec1e0de6924ea551859edb9e7679da6e4870d32cb766240ce17e0a0ba2014"},
- {file = "MarkupSafe-1.1.1-cp39-cp39-manylinux2010_i686.whl", hash = "sha256:7fed13866cf14bba33e7176717346713881f56d9d2bcebab207f7a036f41b850"},
- {file = "MarkupSafe-1.1.1-cp39-cp39-manylinux2010_x86_64.whl", hash = "sha256:6f1e273a344928347c1290119b493a1f0303c52f5a5eae5f16d74f48c15d4a85"},
- {file = "MarkupSafe-1.1.1-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:feb7b34d6325451ef96bc0e36e1a6c0c1c64bc1fbec4b854f4529e51887b1621"},
- {file = "MarkupSafe-1.1.1-cp39-cp39-win32.whl", hash = "sha256:22c178a091fc6630d0d045bdb5992d2dfe14e3259760e713c490da5323866c39"},
- {file = "MarkupSafe-1.1.1-cp39-cp39-win_amd64.whl", hash = "sha256:b7d644ddb4dbd407d31ffb699f1d140bc35478da613b441c582aeb7c43838dd8"},
{file = "MarkupSafe-1.1.1.tar.gz", hash = "sha256:29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b"},
]
matplotlib = [
@@ -2929,7 +2953,6 @@ pyzmq = [
{file = "pyzmq-22.0.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:b62ea18c0458a65ccd5be90f276f7a5a3f26a6dea0066d948ce2fa896051420f"},
{file = "pyzmq-22.0.3-cp38-cp38-win32.whl", hash = "sha256:81e7df0da456206201e226491aa1fc449da85328bf33bbeec2c03bb3a9f18324"},
{file = "pyzmq-22.0.3-cp38-cp38-win_amd64.whl", hash = "sha256:f52070871a0fd90a99130babf21f8af192304ec1e995bec2a9533efc21ea4452"},
- {file = "pyzmq-22.0.3-cp39-cp39-macosx_10_15_universal2.whl", hash = "sha256:c5e29fe4678f97ce429f076a2a049a3d0b2660ada8f2c621e5dc9939426056dd"},
{file = "pyzmq-22.0.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:d18ddc6741b51f3985978f2fda57ddcdae359662d7a6b395bc8ff2292fca14bd"},
{file = "pyzmq-22.0.3-cp39-cp39-manylinux2010_i686.whl", hash = "sha256:4231943514812dfb74f44eadcf85e8dd8cf302b4d0bce450ce1357cac88dbfdc"},
{file = "pyzmq-22.0.3-cp39-cp39-manylinux2010_x86_64.whl", hash = "sha256:23a74de4b43c05c3044aeba0d1f3970def8f916151a712a3ac1e5cd9c0bc2902"},
@@ -2992,8 +3015,8 @@ regex = [
{file = "regex-2021.4.4.tar.gz", hash = "sha256:52ba3d3f9b942c49d7e4bc105bb28551c44065f139a65062ab7912bef10c9afb"},
]
requests = [
- {file = "requests-2.15.1-py2.py3-none-any.whl", hash = "sha256:ff753b2196cd18b1bbeddc9dcd5c864056599f7a7d9a4fb5677e723efa2b7fb9"},
- {file = "requests-2.15.1.tar.gz", hash = "sha256:e5659b9315a0610505e050bb7190bf6fa2ccee1ac295f2b760ef9d8a03ebbb2e"},
+ {file = "requests-2.25.1-py2.py3-none-any.whl", hash = "sha256:c210084e36a42ae6b9219e00e48287def368a26d03a048ddad7bfee44f75871e"},
+ {file = "requests-2.25.1.tar.gz", hash = "sha256:27973dd4a904a4f13b263a19c866c13b92a39ed1c964655f025f3f8d3d75b804"},
]
rich = [
{file = "rich-6.2.0-py3-none-any.whl", hash = "sha256:fa55d5d6ba9a0df1f1c95518891b57b13f1d45548a9a198a87b093fceee513ec"},
@@ -3051,8 +3074,8 @@ soupsieve = [
{file = "soupsieve-2.2.1.tar.gz", hash = "sha256:052774848f448cf19c7e959adf5566904d525f33a3f8b6ba6f6f8f26ec7de0cc"},
]
sphinx = [
- {file = "Sphinx-3.5.3-py3-none-any.whl", hash = "sha256:3f01732296465648da43dec8fb40dc451ba79eb3e2cc5c6d79005fd98197107d"},
- {file = "Sphinx-3.5.3.tar.gz", hash = "sha256:ce9c228456131bab09a3d7d10ae58474de562a6f79abb3dc811ae401cf8c1abc"},
+ {file = "Sphinx-3.5.4-py3-none-any.whl", hash = "sha256:2320d4e994a191f4b4be27da514e46b3d6b420f2ff895d064f52415d342461e8"},
+ {file = "Sphinx-3.5.4.tar.gz", hash = "sha256:19010b7b9fa0dc7756a6e105b2aacd3a80f798af3c25c273be64d7beeb482cb1"},
]
sphinx-copybutton = [
{file = "sphinx-copybutton-0.3.1.tar.gz", hash = "sha256:0e0461df394515284e3907e3f418a0c60ef6ab6c9a27a800c8552772d0a402a2"},
@@ -3190,6 +3213,10 @@ typing-extensions = [
{file = "typing_extensions-3.7.4.3-py3-none-any.whl", hash = "sha256:7cb407020f00f7bfc3cb3e7881628838e69d8f3fcab2f64742a5e76b2f841918"},
{file = "typing_extensions-3.7.4.3.tar.gz", hash = "sha256:99d4073b617d30288f569d3f13d2bd7548c3a7e4c8de87db09a9d29bb3a4a60c"},
]
+urllib3 = [
+ {file = "urllib3-1.26.4-py2.py3-none-any.whl", hash = "sha256:2f4da4594db7e1e110a944bb1b551fdf4e6c136ad42e4234131391e21eb5b0df"},
+ {file = "urllib3-1.26.4.tar.gz", hash = "sha256:e7b021f7241115872f92f43c6508082facffbd1c048e3c6e2bb9c2a157e28937"},
+]
virtualenv = [
{file = "virtualenv-20.4.4-py2.py3-none-any.whl", hash = "sha256:a935126db63128861987a7d5d30e23e8ec045a73840eeccb467c148514e29535"},
{file = "virtualenv-20.4.4.tar.gz", hash = "sha256:09c61377ef072f43568207dc8e46ddeac6bcdcaf288d49011bda0e7f4d38c4a2"},
diff --git a/pyproject.toml b/pyproject.toml
index 88cf319de..89199f754 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -26,7 +26,7 @@ packages = [
[tool.poetry.dependencies]
python = "^3.6.2"
-click = "*"
+click = "^7.1"
click-default-group = "*"
colour = "*"
numpy = "^1.9"
diff --git a/tests/helpers/graphical_units.py b/tests/helpers/graphical_units.py
index 6815fd2f0..09c46599d 100644
--- a/tests/helpers/graphical_units.py
+++ b/tests/helpers/graphical_units.py
@@ -29,7 +29,7 @@ def set_test_scene(scene_object, module_name):
"""
config["write_to_movie"] = False
config["disable_caching"] = True
- config["save_last_frame"] = True
+ config["format"] = "png"
config["pixel_height"] = 480
config["pixel_width"] = 854
config["frame_rate"] = 15