Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Remove Transform.__str__

Grant Sandersond9fcbea8233b
diff --git a/manimlib/animation/transform.py b/manimlib/animation/transform.py
index 32c54506b..32871c03e 100644
--- a/manimlib/animation/transform.py
+++ b/manimlib/animation/transform.py
@@ -5,7 +5,7 @@ import numpy as np
from manimlib.animation.animation import Animation
from manimlib.constants import DEFAULT_POINTWISE_FUNCTION_RUN_TIME
from manimlib.constants import OUT
-from manimlib.constants import PI
+from manimlib.constants import DEGREES
from manimlib.mobject.mobject import Group
from manimlib.mobject.mobject import Mobject
from manimlib.utils.config_ops import digest_config
@@ -28,12 +28,6 @@ class Transform(Animation):
self.target_mobject = target_mobject
self.init_path_func()
- def __str__(self):
- return "{}To{}".format(
- super().__str__(),
- str(self.target_mobject)
- )
-
def init_path_func(self):
if self.path_func is not None:
return
@@ -275,7 +269,7 @@ class ApplyComplexFunction(ApplyMethod):
class CyclicReplace(Transform):
CONFIG = {
- "path_arc": PI / 2,
+ "path_arc": 90 * DEGREES,
}
def __init__(self, *mobjects, **kwargs):