From 30ddeb7b73e49e88acedd0dcb7d179dbcc1f0007 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sun, 21 Jul 2019 22:05:40 -0700 Subject: [PATCH] fix typo in fdfd.vec() --- fdfd_tools/vectorization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdfd_tools/vectorization.py b/fdfd_tools/vectorization.py index bdc9d6a..57b58fb 100644 --- a/fdfd_tools/vectorization.py +++ b/fdfd_tools/vectorization.py @@ -45,5 +45,5 @@ def unvec(v: vfield_t, shape: numpy.ndarray) -> field_t: """ if numpy.any(numpy.equal(v, None)): return None - return vi.reshape((3, *shape), order='C') + return v.reshape((3, *shape), order='C')