@@ -208,11 +208,11 @@ def test_put_vector_invalid_dtype():
208
208
for dtype in [
209
209
np .bool_ ,
210
210
np .bytes_ ,
211
- np .csingle ,
212
- np .cdouble ,
213
- np .clongdouble ,
214
- np .half ,
211
+ np .float16 ,
215
212
np .longdouble ,
213
+ np .complex64 ,
214
+ np .complex128 ,
215
+ np .clongdouble ,
216
216
np .object_ ,
217
217
]:
218
218
with clib .Session () as lib :
@@ -224,7 +224,7 @@ def test_put_vector_invalid_dtype():
224
224
)
225
225
data = np .array ([37 , 12 , 556 ], dtype = dtype )
226
226
with pytest .raises (GMTInvalidInput , match = "Unsupported numpy data type" ):
227
- lib .put_vector (dataset , column = 1 , vector = data )
227
+ lib .put_vector (dataset , column = 0 , vector = data )
228
228
229
229
230
230
def test_put_vector_wrong_column ():
@@ -238,7 +238,7 @@ def test_put_vector_wrong_column():
238
238
mode = "GMT_CONTAINER_ONLY" ,
239
239
dim = [1 , 3 , 0 , 0 ], # ncolumns, nrows, dtype, unused
240
240
)
241
- data = np .array ([37 , 12 , 556 ], dtype = " float32" )
241
+ data = np .array ([37 , 12 , 556 ], dtype = np . float32 )
242
242
with pytest .raises (GMTCLibError ):
243
243
lib .put_vector (dataset , column = 1 , vector = data )
244
244
@@ -254,6 +254,6 @@ def test_put_vector_2d_fails():
254
254
mode = "GMT_CONTAINER_ONLY" ,
255
255
dim = [1 , 6 , 0 , 0 ], # ncolumns, nrows, dtype, unused
256
256
)
257
- data = np .array ([[37 , 12 , 556 ], [37 , 12 , 556 ]], dtype = " int32" )
257
+ data = np .array ([[37 , 12 , 556 ], [37 , 12 , 556 ]], dtype = np . int32 )
258
258
with pytest .raises (GMTInvalidInput ):
259
259
lib .put_vector (dataset , column = 0 , vector = data )
0 commit comments