A community-maintained Python framework for creating mathematical animations.
Also check if if file_writer_config['upto_animation_number'] is not infinity. before not removing files of greater indices.
Aathish5d11863e3c85
diff --git a/manim/scene/scene_file_writer.py b/manim/scene/scene_file_writer.pyindex aaea1d2f1..1b286c03e 100644--- a/manim/scene/scene_file_writer.py+++ b/manim/scene/scene_file_writer.py@@ -441,7 +441,7 @@ class SceneFileWriter(object):}if file_writer_config['from_animation_number'] is not None:kwargs["min_index"] = file_writer_config['from_animation_number']- if file_writer_config['upto_animation_number'] is not None:+ if file_writer_config['upto_animation_number'] not in [None, np.inf]:kwargs["max_index"] = file_writer_config['upto_animation_number']else:kwargs["remove_indices_greater_than"] = self.scene.num_plays - 1