From fdb3a1dc3c2d2529d1dd6faeebc853b04159dcdd Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 19 Dec 2019 20:17:41 +0100 Subject: redo lerping and sineing --- inversion/live.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inversion/live.py') diff --git a/inversion/live.py b/inversion/live.py index a04799e..3cb662e 100644 --- a/inversion/live.py +++ b/inversion/live.py @@ -139,7 +139,7 @@ class InterpolatorParam: self.scalar = shape == () self.shape = shape self.type = type - self.value = value if type != float else np.zeros(shape) + self.value = (value or 0.0) if type == float else np.zeros(shape) self.variable = tf.placeholder(dtype=dtype, shape=shape) interpolator.opts[name] = self -- cgit v1.2.3-70-g09d2