hmn_2_exyz should return an ndarray

This commit is contained in:
Jan Petykiewicz 2020-06-11 19:26:51 -07:00
parent b7d4bbbd95
commit a312a3085c

View File

@ -278,7 +278,7 @@ def hmn_2_exyz(k0: numpy.ndarray,
m * hin_n) * k_mag m * hin_n) * k_mag
# divide by epsilon # divide by epsilon
return [ei for ei in numpy.rollaxis(ifftn(d_xyz, axes=range(3)) / epsilon, 3)] return numpy.array([ei for ei in numpy.rollaxis(ifftn(d_xyz, axes=range(3)) / epsilon, 3)]) #TODO avoid copy
return operator return operator