Skip to content

Commit 4b3e8f3

Browse files
committed
Revert "Deal with nested lists/tuples"
This reverts commit 9f30479.
1 parent c407a23 commit 4b3e8f3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pygmt/clib/session.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
from pygmt.helpers import (
3131
_validate_data_input,
3232
data_kind,
33-
is_nonstr_iter,
3433
tempfile_from_geojson,
3534
tempfile_from_image,
3635
)
@@ -1731,9 +1730,6 @@ def virtualfile_in( # noqa: PLR0912
17311730
# Dict, pandas.DataFrame or xarray.Dataset types.
17321731
# pandas.Series will be handled below like a 1-D numpy.ndarray.
17331732
_data = [array for _, array in data.items()]
1734-
elif is_nonstr_iter(data) and all(is_nonstr_iter(arr) for arr in data):
1735-
# Nested sequences (list/tuple)
1736-
_data = data
17371733
else:
17381734
# Python list, tuple, and pandas.Series types
17391735
_data = np.atleast_2d(np.asanyarray(data).T)

0 commit comments

Comments
 (0)