Skip to content

Commit b7e2d79

Browse files
committed
Fix numpy2 test failures
1 parent c190665 commit b7e2d79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

astroquery/mast/tests/test_mast_remote.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def msa_product_table():
3232
products = Observations.get_product_list(obs['obsid'][0])
3333

3434
# Filter out everything but the MSA config file
35-
mask = np.char.find(products["dataURI"], "_msa.fits") != -1
35+
mask = np.char.find(np.char.asarray(products["dataURI"]), "_msa.fits") != -1
3636
products = products[mask]
3737

3838
return products
@@ -622,7 +622,7 @@ def test_observations_get_product_list_tess_tica(self, caplog):
622622

623623
# Should only return products corresponding to target 429031146
624624
assert len(prods) > 0
625-
assert (np.char.find(prods['obs_id'], '429031146') != -1).all()
625+
assert (np.char.find(np.char.asarray(prods['obs_id']), '429031146') != -1).all()
626626

627627
def test_observations_get_unique_product_list(self, caplog):
628628
# Check that no rows are filtered out when all products are unique

0 commit comments

Comments
 (0)