@@ -44,7 +44,7 @@ def test_virtualfile_from_vectors(dtypes):
44
44
y = np .arange (size , size * 2 , 1 , dtype = dtype )
45
45
z = np .arange (size * 2 , size * 3 , 1 , dtype = dtype )
46
46
with clib .Session () as lib :
47
- with lib .virtualfile_from_vectors (x , y , z ) as vfile :
47
+ with lib .virtualfile_from_vectors (( x , y , z ) ) as vfile :
48
48
with GMTTempFile () as outfile :
49
49
lib .call_module ("info" , [vfile , f"->{ outfile .name } " ])
50
50
output = outfile .read (keep_tabs = True )
@@ -64,7 +64,7 @@ def test_virtualfile_from_vectors_one_string_or_object_column(dtype):
64
64
y = np .arange (size , size * 2 , 1 , dtype = np .int32 )
65
65
strings = np .array (["a" , "bc" , "defg" , "hijklmn" , "opqrst" ], dtype = dtype )
66
66
with clib .Session () as lib :
67
- with lib .virtualfile_from_vectors (x , y , strings ) as vfile :
67
+ with lib .virtualfile_from_vectors (( x , y , strings ) ) as vfile :
68
68
with GMTTempFile () as outfile :
69
69
lib .call_module ("convert" , [vfile , f"->{ outfile .name } " ])
70
70
output = outfile .read (keep_tabs = True )
@@ -86,7 +86,7 @@ def test_virtualfile_from_vectors_two_string_or_object_columns(dtype):
86
86
strings1 = np .array (["a" , "bc" , "def" , "ghij" , "klmnolooong" ], dtype = dtype )
87
87
strings2 = np .array (["pqrst" , "uvwx" , "yz!" , "@#" , "$" ], dtype = dtype )
88
88
with clib .Session () as lib :
89
- with lib .virtualfile_from_vectors (x , y , strings1 , strings2 ) as vfile :
89
+ with lib .virtualfile_from_vectors (( x , y , strings1 , strings2 ) ) as vfile :
90
90
with GMTTempFile () as outfile :
91
91
lib .call_module ("convert" , [vfile , f"->{ outfile .name } " ])
92
92
output = outfile .read (keep_tabs = True )
@@ -105,7 +105,7 @@ def test_virtualfile_from_vectors_transpose(dtypes):
105
105
for dtype in dtypes :
106
106
data = np .arange (shape [0 ] * shape [1 ], dtype = dtype ).reshape (shape )
107
107
with clib .Session () as lib :
108
- with lib .virtualfile_from_vectors (* data .T ) as vfile :
108
+ with lib .virtualfile_from_vectors (data .T ) as vfile :
109
109
with GMTTempFile () as outfile :
110
110
lib .call_module ("info" , [vfile , "-C" , f"->{ outfile .name } " ])
111
111
output = outfile .read (keep_tabs = True )
@@ -122,7 +122,7 @@ def test_virtualfile_from_vectors_diff_size():
122
122
y = np .arange (6 )
123
123
with clib .Session () as lib :
124
124
with pytest .raises (GMTInvalidInput ):
125
- with lib .virtualfile_from_vectors (x , y ):
125
+ with lib .virtualfile_from_vectors (( x , y ) ):
126
126
pass
127
127
128
128
@@ -143,7 +143,7 @@ def test_virtualfile_from_vectors_pandas(dtypes_pandas):
143
143
dtype = dtype ,
144
144
)
145
145
with clib .Session () as lib :
146
- with lib .virtualfile_from_vectors (data .x , data .y , data .z ) as vfile :
146
+ with lib .virtualfile_from_vectors (( data .x , data .y , data .z ) ) as vfile :
147
147
with GMTTempFile () as outfile :
148
148
lib .call_module ("info" , [vfile , f"->{ outfile .name } " ])
149
149
output = outfile .read (keep_tabs = True )
@@ -163,7 +163,7 @@ def test_virtualfile_from_vectors_arraylike():
163
163
y = tuple (range (size , size * 2 , 1 ))
164
164
z = range (size * 2 , size * 3 , 1 )
165
165
with clib .Session () as lib :
166
- with lib .virtualfile_from_vectors (x , y , z ) as vfile :
166
+ with lib .virtualfile_from_vectors (( x , y , z ) ) as vfile :
167
167
with GMTTempFile () as outfile :
168
168
lib .call_module ("info" , [vfile , f"->{ outfile .name } " ])
169
169
output = outfile .read (keep_tabs = True )
0 commit comments