From 39c05d2cabbbf15255c6f575e985c6568720ce51 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Mon, 22 Jul 2019 00:27:48 -0700 Subject: [PATCH] no reason to demand float32 yet --- fdfd_tools/test_fdtd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fdfd_tools/test_fdtd.py b/fdfd_tools/test_fdtd.py index fb29cfb..6628ab6 100644 --- a/fdfd_tools/test_fdtd.py +++ b/fdfd_tools/test_fdtd.py @@ -303,8 +303,8 @@ class JdotE_3DUniformDX(unittest.TestCase): self.epsilon = numpy.full(shape, 4, dtype=float) self.epsilon[self.src_mask] = 2 - e = numpy.random.randint(-128, 128 + 1, size=shape).astype(numpy.float32) - h = numpy.random.randint(-128, 128 + 1, size=shape).astype(numpy.float32) + e = numpy.random.randint(-128, 128 + 1, size=shape).astype(float) + h = numpy.random.randint(-128, 128 + 1, size=shape).astype(float) self.es = [e] self.hs = [h]