File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1745,14 +1745,14 @@ def virtualfile_in( # noqa: PLR0912
1745
1745
else :
1746
1746
# Python list, tuple, and pandas.Series types
1747
1747
_data = np .atleast_2d (np .asanyarray (data ).T )
1748
- elif kind == "matrix" :
1748
+ elif kind == "matrix" : # 2-D numpy.ndarray
1749
1749
if data .dtype .kind in "iuf" :
1750
1750
# virtualfile_from_matrix only support 2-D numpy.ndarray which are
1751
1751
# signed integer (i), unsigned integer (u) or floating point (f) types
1752
1752
_data = (data ,)
1753
- else : # turn 2-D numpy.ndarray into list of vectors
1753
+ else : # turn 2-D numpy.ndarray into list of arrays
1754
1754
_virtualfile_from = self .virtualfile_from_vectors
1755
- _data = np . atleast_2d ( np . asanyarray ( data ) .T )
1755
+ _data = list ( data .T )
1756
1756
1757
1757
# Finally create the virtualfile from the data, to be passed into GMT
1758
1758
file_context = _virtualfile_from (* _data )
You can’t perform that action at this time.
0 commit comments