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 animations with zero runtime length to give a useful error instead of a broken pipe #3491

Merged
merged 10 commits into from
Dec 12, 2023
2 changes: 2 additions & 0 deletions manim/animation/composition.py
MrDiver marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def __init__(
lag_ratio: float = 0,
**kwargs,
) -> None:
if len(animations) == 0:
raise ValueError("AnimationGroup must have at least one animation")
self.animations = [prepare_animation(anim) for anim in animations]
self.rate_func = rate_func
self.group = group
Expand Down
Loading