mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 20:43:56 +08:00
Remove usage of np.append
This commit is contained in:
@ -346,10 +346,7 @@ class Mobject(Container):
|
||||
This can make transition animations nicer
|
||||
"""
|
||||
def repeat_array(array):
|
||||
return reduce(
|
||||
lambda a1, a2: np.append(a1, a2, axis=0),
|
||||
[array] * count
|
||||
)
|
||||
return np.vstack([array] * count)
|
||||
for mob in self.family_members_with_points():
|
||||
mob.apply_over_attr_arrays(repeat_array)
|
||||
return self
|
||||
|
Reference in New Issue
Block a user