Force slices to be a tuple
This commit is contained in:
parent
3a5d75cde4
commit
2acbda4764
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user