@@ -69,7 +69,7 @@ def test_virtual_file(dtypes):
69
69
vfargs = (family , geometry , "GMT_IN|GMT_IS_REFERENCE" , dataset )
70
70
with lib .open_virtualfile (* vfargs ) as vfile :
71
71
with GMTTempFile () as outfile :
72
- lib .call_module ("info" , f" { vfile } ->{ outfile .name } " )
72
+ lib .call_module ("info" , [ vfile , f" ->{ outfile .name } "] )
73
73
output = outfile .read (keep_tabs = True )
74
74
bounds = "\t " .join ([f"<{ col .min ():.0f} /{ col .max ():.0f} >" for col in data .T ])
75
75
expected = f"<matrix memory>: N = { shape [0 ]} \t { bounds } \n "
@@ -144,7 +144,7 @@ def test_virtualfile_in_required_z_matrix(array_func, kind):
144
144
data = data , required_z = True , check_kind = "vector"
145
145
) as vfile :
146
146
with GMTTempFile () as outfile :
147
- lib .call_module ("info" , f" { vfile } ->{ outfile .name } " )
147
+ lib .call_module ("info" , [ vfile , f" ->{ outfile .name } "] )
148
148
output = outfile .read (keep_tabs = True )
149
149
bounds = "\t " .join (
150
150
[
@@ -217,7 +217,7 @@ def test_virtualfile_from_vectors(dtypes):
217
217
with clib .Session () as lib :
218
218
with lib .virtualfile_from_vectors (x , y , z ) as vfile :
219
219
with GMTTempFile () as outfile :
220
- lib .call_module ("info" , f" { vfile } ->{ outfile .name } " )
220
+ lib .call_module ("info" , [ vfile , f" ->{ outfile .name } "] )
221
221
output = outfile .read (keep_tabs = True )
222
222
bounds = "\t " .join ([f"<{ i .min ():.0f} /{ i .max ():.0f} >" for i in (x , y , z )])
223
223
expected = f"<vector memory>: N = { size } \t { bounds } \n "
@@ -237,7 +237,7 @@ def test_virtualfile_from_vectors_one_string_or_object_column(dtype):
237
237
with clib .Session () as lib :
238
238
with lib .virtualfile_from_vectors (x , y , strings ) as vfile :
239
239
with GMTTempFile () as outfile :
240
- lib .call_module ("convert" , f" { vfile } ->{ outfile .name } " )
240
+ lib .call_module ("convert" , [ vfile , f" ->{ outfile .name } "] )
241
241
output = outfile .read (keep_tabs = True )
242
242
expected = "" .join (
243
243
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):
259
259
with clib .Session () as lib :
260
260
with lib .virtualfile_from_vectors (x , y , strings1 , strings2 ) as vfile :
261
261
with GMTTempFile () as outfile :
262
- lib .call_module ("convert" , f" { vfile } ->{ outfile .name } " )
262
+ lib .call_module ("convert" , [ vfile , f" ->{ outfile .name } "] )
263
263
output = outfile .read (keep_tabs = True )
264
264
expected = "" .join (
265
265
f"{ h } \t { i } \t { j } { k } \n "
@@ -278,7 +278,7 @@ def test_virtualfile_from_vectors_transpose(dtypes):
278
278
with clib .Session () as lib :
279
279
with lib .virtualfile_from_vectors (* data .T ) as vfile :
280
280
with GMTTempFile () as outfile :
281
- lib .call_module ("info" , f" { vfile } -C ->{ outfile .name } " )
281
+ lib .call_module ("info" , [ vfile , "-C" , f" ->{ outfile .name } "] )
282
282
output = outfile .read (keep_tabs = True )
283
283
bounds = "\t " .join ([f"{ col .min ():.0f} \t { col .max ():.0f} " for col in data .T ])
284
284
expected = f"{ bounds } \n "
@@ -308,7 +308,7 @@ def test_virtualfile_from_matrix(dtypes):
308
308
with clib .Session () as lib :
309
309
with lib .virtualfile_from_matrix (data ) as vfile :
310
310
with GMTTempFile () as outfile :
311
- lib .call_module ("info" , f" { vfile } ->{ outfile .name } " )
311
+ lib .call_module ("info" , [ vfile , f" ->{ outfile .name } "] )
312
312
output = outfile .read (keep_tabs = True )
313
313
bounds = "\t " .join ([f"<{ col .min ():.0f} /{ col .max ():.0f} >" for col in data .T ])
314
314
expected = f"<matrix memory>: N = { shape [0 ]} \t { bounds } \n "
@@ -328,7 +328,7 @@ def test_virtualfile_from_matrix_slice(dtypes):
328
328
with clib .Session () as lib :
329
329
with lib .virtualfile_from_matrix (data ) as vfile :
330
330
with GMTTempFile () as outfile :
331
- lib .call_module ("info" , f" { vfile } ->{ outfile .name } " )
331
+ lib .call_module ("info" , [ vfile , f" ->{ outfile .name } "] )
332
332
output = outfile .read (keep_tabs = True )
333
333
bounds = "\t " .join ([f"<{ col .min ():.0f} /{ col .max ():.0f} >" for col in data .T ])
334
334
expected = f"<matrix memory>: N = { rows } \t { bounds } \n "
@@ -354,7 +354,7 @@ def test_virtualfile_from_vectors_pandas(dtypes_pandas):
354
354
with clib .Session () as lib :
355
355
with lib .virtualfile_from_vectors (data .x , data .y , data .z ) as vfile :
356
356
with GMTTempFile () as outfile :
357
- lib .call_module ("info" , f" { vfile } ->{ outfile .name } " )
357
+ lib .call_module ("info" , [ vfile , f" ->{ outfile .name } "] )
358
358
output = outfile .read (keep_tabs = True )
359
359
bounds = "\t " .join (
360
360
[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():
374
374
with clib .Session () as lib :
375
375
with lib .virtualfile_from_vectors (x , y , z ) as vfile :
376
376
with GMTTempFile () as outfile :
377
- lib .call_module ("info" , f" { vfile } ->{ outfile .name } " )
377
+ lib .call_module ("info" , [ vfile , f" ->{ outfile .name } "] )
378
378
output = outfile .read (keep_tabs = True )
379
379
bounds = "\t " .join ([f"<{ min (i ):.0f} /{ max (i ):.0f} >" for i in (x , y , z )])
380
380
expected = f"<vector memory>: N = { size } \t { bounds } \n "
0 commit comments