hmn_2_exyz should return an ndarray
This commit is contained in:
parent
b7d4bbbd95
commit
a312a3085c
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user