From fbebaf0c75b032df6d3e7203c8c1b7038541b484 Mon Sep 17 00:00:00 2001 From: YishiMichael Date: Tue, 12 Apr 2022 19:39:19 +0800 Subject: [PATCH] Sort imports --- manimlib/animation/indication.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manimlib/animation/indication.py b/manimlib/animation/indication.py index 92c7d013..160464b3 100644 --- a/manimlib/animation/indication.py +++ b/manimlib/animation/indication.py @@ -1,5 +1,6 @@ from __future__ import annotations +import math import numpy as np from manimlib.animation.animation import Animation @@ -220,7 +221,7 @@ class VShowPassingFlash(Animation): if abs(x - mu) > 3 * sigma: return 0 z = (x - mu) / sigma - return np.exp(-0.5 * z * z) + return math.exp(-0.5 * z * z) kernel_array = list(map(gauss_kernel, np.linspace(0, 1, len(anchor_widths)))) scaled_widths = anchor_widths * kernel_array