We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69b681a commit 9f30479Copy full SHA for 9f30479
pygmt/clib/session.py
@@ -30,6 +30,7 @@
30
from pygmt.helpers import (
31
_validate_data_input,
32
data_kind,
33
+ is_nonstr_iter,
34
tempfile_from_geojson,
35
tempfile_from_image,
36
)
@@ -1730,6 +1731,9 @@ def virtualfile_in( # noqa: PLR0912
1730
1731
# Dict, pandas.DataFrame or xarray.Dataset types.
1732
# pandas.Series will be handled below like a 1-D numpy.ndarray.
1733
_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
1737
else:
1738
# Python list, tuple, and pandas.Series types
1739
_data = np.atleast_2d(np.asanyarray(data).T)
0 commit comments