Skip to content

Commit

Permalink
Merge pull request #313 from ax3l/fix-openPMDapiModes
Browse files Browse the repository at this point in the history
openPMD-api reader: fix avail_circ_modes
  • Loading branch information
RemiLehe authored Mar 26, 2021
2 parents cddaf9b + d542e16 commit f405a0e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def read_openPMD_params(series, iteration, extract_parameters=True):
if metadata['geometry'] == "thetaMode":
# simply check first record component
field_component = next(field.items())[1]
Nm = field_component.ndim
Nm = field_component.shape[0]
metadata['avail_circ_modes'] = ['all'] + \
[str(m) for m in range(int(Nm / 2) + 1)]
# Check if this a 1d, 2d or 3d Cartesian
Expand Down

0 comments on commit f405a0e

Please sign in to comment.