@@ -196,10 +196,7 @@ class = 'galaxy'
196
196
xid = sdss .SDSS .query_sql (query , data_release = dr )
197
197
data = Table .read (data_path (DATA_FILES ['images_id' ]),
198
198
format = 'ascii.csv' , comment = '#' )
199
- # The following line is needed for systems where the default integer type
200
- # is int32, the column will then be interpreted as string which makes the
201
- # test fail.
202
- data ['objid' ] = data ['objid' ].astype (np .int64 )
199
+
203
200
compare_xid_data (xid , data )
204
201
url_tester (dr )
205
202
@@ -237,11 +234,7 @@ def test_sdss_specobj(patch_request, dr):
237
234
xid = sdss .SDSS .query_specobj (plate = 2340 , data_release = dr )
238
235
data = Table .read (data_path (DATA_FILES ['spectra_id' ]),
239
236
format = 'ascii.csv' , comment = '#' )
240
- # The following line is needed for systems where the default integer type
241
- # is int32, the column will then be interpreted as string which makes the
242
- # test fail.
243
- data ['specobjid' ] = data ['specobjid' ].astype (np .int64 )
244
- data ['objid' ] = data ['objid' ].astype (np .int64 )
237
+
245
238
compare_xid_data (xid , data )
246
239
url_tester (dr )
247
240
@@ -252,10 +245,6 @@ def test_sdss_photoobj(patch_request, dr):
252
245
run = 1904 , camcol = 3 , field = 164 , data_release = dr )
253
246
data = Table .read (data_path (DATA_FILES ['images_id' ]),
254
247
format = 'ascii.csv' , comment = '#' )
255
- # The following line is needed for systems where the default integer type
256
- # is int32, the column will then be interpreted as string which makes the
257
- # test fail.
258
- data ['objid' ] = data ['objid' ].astype (np .int64 )
259
248
compare_xid_data (xid , data )
260
249
url_tester (dr )
261
250
@@ -265,10 +254,6 @@ def test_list_coordinates(patch_request, dr):
265
254
xid = sdss .SDSS .query_region (coords_list , data_release = dr )
266
255
data = Table .read (data_path (DATA_FILES ['images_id' ]),
267
256
format = 'ascii.csv' , comment = '#' )
268
- # The following line is needed for systems where the default integer type
269
- # is int32, the column will then be interpreted as string which makes the
270
- # test fail.
271
- data ['objid' ] = data ['objid' ].astype (np .int64 )
272
257
compare_xid_data (xid , data )
273
258
url_tester_crossid (dr )
274
259
@@ -278,10 +263,6 @@ def test_column_coordinates(patch_request, dr):
278
263
xid = sdss .SDSS .query_region (coords_column , data_release = dr )
279
264
data = Table .read (data_path (DATA_FILES ['images_id' ]),
280
265
format = 'ascii.csv' , comment = '#' )
281
- # The following line is needed for systems where the default integer type
282
- # is int32, the column will then be interpreted as string which makes the
283
- # test fail.
284
- data ['objid' ] = data ['objid' ].astype (np .int64 )
285
266
compare_xid_data (xid , data )
286
267
url_tester_crossid (dr )
287
268
@@ -306,10 +287,6 @@ def test_query_crossid(patch_request, dr):
306
287
xid = sdss .SDSS .query_crossid (coords_column , data_release = dr )
307
288
data = Table .read (data_path (DATA_FILES ['images_id' ]),
308
289
format = 'ascii.csv' , comment = '#' )
309
- # The following line is needed for systems where the default integer type
310
- # is int32, the column will then be interpreted as string which makes the
311
- # test fail.
312
- data ['objid' ] = data ['objid' ].astype (np .int64 )
313
290
compare_xid_data (xid , data )
314
291
url_tester_crossid (dr )
315
292
0 commit comments