Force slices to be a tuple

This commit is contained in:
Jan Petykiewicz 2019-07-09 20:12:03 -07:00
parent 3a5d75cde4
commit 2acbda4764

View File

@ -234,6 +234,8 @@ def compute_overlap_e(E: field_t,
:param mu: Magnetic permeability (default 1 everywhere)
:return: overlap_e for calculating the mode overlap
"""
slices = tuple(slices)
cross_plane = [slice(None)] * 3
cross_plane[axis] = slices[axis]