Skip to content

Commit

Permalink
field not None (#1882)
Browse files Browse the repository at this point in the history
Co-authored-by: Mo Chen <mochen@Mos-MacBook-Pro.local>
  • Loading branch information
mochen4 and Mo Chen authored Jan 4, 2022
1 parent a1884b2 commit d00febd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ def plot2D(sim, ax=None, output_plane=None, fields=None, labels=False,
labels=labels, monitor_parameters=monitor_parameters)

# Plot fields
if fields:
if fields is not None:
ax = plot_fields(sim, ax, fields, output_plane=output_plane,
field_parameters=field_parameters)

Expand Down

0 comments on commit d00febd

Please sign in to comment.