Skip to content

Commit ef6e6aa

Browse files
committed
Fix a bug when passing a 2-D matrix to virtualfile_from_vectors
1 parent cfa32ed commit ef6e6aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pygmt/clib/session.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1831,6 +1831,7 @@ def virtualfile_in( # noqa: PLR0912
18311831
_data = (data,)
18321832
if data.dtype.kind not in "iuf":
18331833
_virtualfile_from = self.virtualfile_from_vectors
1834+
_data = data
18341835

18351836
# Finally create the virtualfile from the data, to be passed into GMT
18361837
file_context = _virtualfile_from(*_data)

0 commit comments

Comments
 (0)