Skip to content

Commit

Permalink
Fix setitem in fields.py for 1d and 2d
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote committed Jul 13, 2023
1 parent 612d395 commit da415ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/pywarpx/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def __setitem__(self, index, value):
raise Exception('Too many indices given')

# Expand the indices to length 3
ii = self._get_indices(index, None)
ii = self._get_indices(index, slice(None))
ic = index[-1]

ixmin, iymin, izmin = self._get_min_indices()
Expand Down

0 comments on commit da415ba

Please sign in to comment.