Skip to content

Commit

Permalink
Remove .tolist()
Browse files Browse the repository at this point in the history
  • Loading branch information
prisae committed Oct 9, 2024
1 parent 1410f90 commit 92c27ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions emg3d/inversion/simpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ def _di(self):

def data2simpeg(self, data):
"""Convert an emg3d data-xarray to a SimPEG data array."""
# Remove `.tolist()` when SimPEG PR#1523 is released
return data[self._di[0], self._di[1], self._di[2]].tolist()
return data[self._di[0], self._di[1], self._di[2]]

def data2emg3d(self, data):
"""Convert a SimPEG data array to an emg3d data-xarray."""
Expand Down

0 comments on commit 92c27ea

Please sign in to comment.