Skip to content

Commit ccc9618

Browse files
authored
Merge pull request #1999 from jwoillez/deprecation_fixes
Fix for CI issues
2 parents 563fce0 + 8897553 commit ccc9618

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

astroquery/gaia/tests/test_gaiatap.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def test_query_object(self):
8686
'source_id',
8787
'source_id',
8888
None,
89-
np.object)
89+
object)
9090
self.__check_results_column(table,
9191
'table1_oid',
9292
'table1_oid',
@@ -112,7 +112,7 @@ def test_query_object(self):
112112
'source_id',
113113
'source_id',
114114
None,
115-
np.object)
115+
object)
116116
self.__check_results_column(table,
117117
'table1_oid',
118118
'table1_oid',
@@ -181,7 +181,7 @@ def test_query_object_async(self):
181181
'source_id',
182182
'source_id',
183183
None,
184-
np.object)
184+
object)
185185
self.__check_results_column(table,
186186
'table1_oid',
187187
'table1_oid',
@@ -207,7 +207,7 @@ def test_query_object_async(self):
207207
'source_id',
208208
'source_id',
209209
None,
210-
np.object)
210+
object)
211211
self.__check_results_column(table,
212212
'table1_oid',
213213
'table1_oid',
@@ -260,7 +260,7 @@ def test_cone_search_sync(self):
260260
'source_id',
261261
'source_id',
262262
None,
263-
np.object)
263+
object)
264264
self.__check_results_column(results,
265265
'table1_oid',
266266
'table1_oid',
@@ -337,7 +337,7 @@ def test_cone_search_async(self):
337337
'source_id',
338338
'source_id',
339339
None,
340-
np.object)
340+
object)
341341
self.__check_results_column(results,
342342
'table1_oid',
343343
'table1_oid',

astroquery/nasa_exoplanet_archive/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def _fix_units(self, data):
430430
data[col].mask[:] = False
431431

432432
# Deal with strings consistently
433-
if data[col].dtype == np.object:
433+
if data[col].dtype == object:
434434
data[col] = data[col].astype(str)
435435

436436
data[col].unit = unit

astroquery/utils/tap/tests/test_tap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def test_launch_sync_job():
220220
'source_id',
221221
'source_id',
222222
None,
223-
np.object)
223+
object)
224224
__check_results_column(results,
225225
'table1_oid',
226226
'table1_oid',
@@ -323,7 +323,7 @@ def test_launch_sync_job_redirect():
323323
'source_id',
324324
'source_id',
325325
None,
326-
np.object)
326+
object)
327327
__check_results_column(results,
328328
'table1_oid',
329329
'table1_oid',
@@ -419,7 +419,7 @@ def test_launch_async_job():
419419
'source_id',
420420
'source_id',
421421
None,
422-
np.object)
422+
object)
423423
__check_results_column(results,
424424
'table1_oid',
425425
'table1_oid',

0 commit comments

Comments
 (0)