@@ -69,7 +69,7 @@ def test_virtual_file(dtypes):
6969 vfargs = (family , geometry , "GMT_IN|GMT_IS_REFERENCE" , dataset )
7070 with lib .open_virtualfile (* vfargs ) as vfile :
7171 with GMTTempFile () as outfile :
72- lib .call_module ("info" , f" { vfile } ->{ outfile .name } " )
72+ lib .call_module ("info" , [ vfile , f" ->{ outfile .name } "] )
7373 output = outfile .read (keep_tabs = True )
7474 bounds = "\t " .join ([f"<{ col .min ():.0f} /{ col .max ():.0f} >" for col in data .T ])
7575 expected = f"<matrix memory>: N = { shape [0 ]} \t { bounds } \n "
@@ -144,7 +144,7 @@ def test_virtualfile_in_required_z_matrix(array_func, kind):
144144 data = data , required_z = True , check_kind = "vector"
145145 ) as vfile :
146146 with GMTTempFile () as outfile :
147- lib .call_module ("info" , f" { vfile } ->{ outfile .name } " )
147+ lib .call_module ("info" , [ vfile , f" ->{ outfile .name } "] )
148148 output = outfile .read (keep_tabs = True )
149149 bounds = "\t " .join (
150150 [
@@ -217,7 +217,7 @@ def test_virtualfile_from_vectors(dtypes):
217217 with clib .Session () as lib :
218218 with lib .virtualfile_from_vectors (x , y , z ) as vfile :
219219 with GMTTempFile () as outfile :
220- lib .call_module ("info" , f" { vfile } ->{ outfile .name } " )
220+ lib .call_module ("info" , [ vfile , f" ->{ outfile .name } "] )
221221 output = outfile .read (keep_tabs = True )
222222 bounds = "\t " .join ([f"<{ i .min ():.0f} /{ i .max ():.0f} >" for i in (x , y , z )])
223223 expected = f"<vector memory>: N = { size } \t { bounds } \n "
@@ -237,7 +237,7 @@ def test_virtualfile_from_vectors_one_string_or_object_column(dtype):
237237 with clib .Session () as lib :
238238 with lib .virtualfile_from_vectors (x , y , strings ) as vfile :
239239 with GMTTempFile () as outfile :
240- lib .call_module ("convert" , f" { vfile } ->{ outfile .name } " )
240+ lib .call_module ("convert" , [ vfile , f" ->{ outfile .name } "] )
241241 output = outfile .read (keep_tabs = True )
242242 expected = "" .join (
243243 f"{ i } \t { j } \t { k } \n " for i , j , k in zip (x , y , strings , strict = True )
@@ -259,7 +259,7 @@ def test_virtualfile_from_vectors_two_string_or_object_columns(dtype):
259259 with clib .Session () as lib :
260260 with lib .virtualfile_from_vectors (x , y , strings1 , strings2 ) as vfile :
261261 with GMTTempFile () as outfile :
262- lib .call_module ("convert" , f" { vfile } ->{ outfile .name } " )
262+ lib .call_module ("convert" , [ vfile , f" ->{ outfile .name } "] )
263263 output = outfile .read (keep_tabs = True )
264264 expected = "" .join (
265265 f"{ h } \t { i } \t { j } { k } \n "
@@ -278,7 +278,7 @@ def test_virtualfile_from_vectors_transpose(dtypes):
278278 with clib .Session () as lib :
279279 with lib .virtualfile_from_vectors (* data .T ) as vfile :
280280 with GMTTempFile () as outfile :
281- lib .call_module ("info" , f" { vfile } -C ->{ outfile .name } " )
281+ lib .call_module ("info" , [ vfile , "-C" , f" ->{ outfile .name } "] )
282282 output = outfile .read (keep_tabs = True )
283283 bounds = "\t " .join ([f"{ col .min ():.0f} \t { col .max ():.0f} " for col in data .T ])
284284 expected = f"{ bounds } \n "
@@ -308,7 +308,7 @@ def test_virtualfile_from_matrix(dtypes):
308308 with clib .Session () as lib :
309309 with lib .virtualfile_from_matrix (data ) as vfile :
310310 with GMTTempFile () as outfile :
311- lib .call_module ("info" , f" { vfile } ->{ outfile .name } " )
311+ lib .call_module ("info" , [ vfile , f" ->{ outfile .name } "] )
312312 output = outfile .read (keep_tabs = True )
313313 bounds = "\t " .join ([f"<{ col .min ():.0f} /{ col .max ():.0f} >" for col in data .T ])
314314 expected = f"<matrix memory>: N = { shape [0 ]} \t { bounds } \n "
@@ -328,7 +328,7 @@ def test_virtualfile_from_matrix_slice(dtypes):
328328 with clib .Session () as lib :
329329 with lib .virtualfile_from_matrix (data ) as vfile :
330330 with GMTTempFile () as outfile :
331- lib .call_module ("info" , f" { vfile } ->{ outfile .name } " )
331+ lib .call_module ("info" , [ vfile , f" ->{ outfile .name } "] )
332332 output = outfile .read (keep_tabs = True )
333333 bounds = "\t " .join ([f"<{ col .min ():.0f} /{ col .max ():.0f} >" for col in data .T ])
334334 expected = f"<matrix memory>: N = { rows } \t { bounds } \n "
@@ -354,7 +354,7 @@ def test_virtualfile_from_vectors_pandas(dtypes_pandas):
354354 with clib .Session () as lib :
355355 with lib .virtualfile_from_vectors (data .x , data .y , data .z ) as vfile :
356356 with GMTTempFile () as outfile :
357- lib .call_module ("info" , f" { vfile } ->{ outfile .name } " )
357+ lib .call_module ("info" , [ vfile , f" ->{ outfile .name } "] )
358358 output = outfile .read (keep_tabs = True )
359359 bounds = "\t " .join (
360360 [f"<{ i .min ():.0f} /{ i .max ():.0f} >" for i in (data .x , data .y , data .z )]
@@ -374,7 +374,7 @@ def test_virtualfile_from_vectors_arraylike():
374374 with clib .Session () as lib :
375375 with lib .virtualfile_from_vectors (x , y , z ) as vfile :
376376 with GMTTempFile () as outfile :
377- lib .call_module ("info" , f" { vfile } ->{ outfile .name } " )
377+ lib .call_module ("info" , [ vfile , f" ->{ outfile .name } "] )
378378 output = outfile .read (keep_tabs = True )
379379 bounds = "\t " .join ([f"<{ min (i ):.0f} /{ max (i ):.0f} >" for i in (x , y , z )])
380380 expected = f"<vector memory>: N = { size } \t { bounds } \n "
0 commit comments