Skip to content

Commit

Permalink
Revert "Deal with nested lists/tuples"
Browse files Browse the repository at this point in the history
This reverts commit 9f30479.
  • Loading branch information
seisman committed Aug 4, 2024
1 parent c407a23 commit 4b3e8f3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pygmt/clib/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
from pygmt.helpers import (
_validate_data_input,
data_kind,
is_nonstr_iter,
tempfile_from_geojson,
tempfile_from_image,
)
Expand Down Expand Up @@ -1731,9 +1730,6 @@ def virtualfile_in( # noqa: PLR0912
# Dict, pandas.DataFrame or xarray.Dataset types.
# pandas.Series will be handled below like a 1-D numpy.ndarray.
_data = [array for _, array in data.items()]
elif is_nonstr_iter(data) and all(is_nonstr_iter(arr) for arr in data):
# Nested sequences (list/tuple)
_data = data
else:
# Python list, tuple, and pandas.Series types
_data = np.atleast_2d(np.asanyarray(data).T)
Expand Down

0 comments on commit 4b3e8f3

Please sign in to comment.