Skip to content
Snippets Groups Projects
Commit 309622fc authored by sjgrimm's avatar sjgrimm
Browse files

_listAMmodes returns empty list, if simulation has no AM modes

parent 1762b11a
No related branches found
No related tags found
No related merge requests found
......@@ -172,6 +172,8 @@ class SmileiReader(OpenPMDreader):
strings = np.array(self._data)
mask = np.array(["_mode_" in s for s in strings])
arr = strings[mask]
if len(arr) == 0:
return ([], [])
max_suffix = float('-inf')
max_suffix_string = None
prefix_list = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment