Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-34875: Expect Astropy instead of Pandas for objectTable in tests. #125

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/test_coadd_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ def test_coadd_transmission_curves(self):

to_check = ctx.choice(len(cat), size=n_object_test, replace=False)
for index in to_check:
coadd_coord = geom.SpherePoint(cat["coord_ra"].values[index]*geom.degrees,
cat["coord_dec"].values[index]*geom.degrees)
coadd_coord = geom.SpherePoint(np.asarray(cat["coord_ra"][index])*geom.degrees,
np.asarray(cat["coord_dec"][index])*geom.degrees)
summed_throughput = np.zeros(wavelengths.shape, dtype=np.float64)
weight_sum = 0.0
for rec in coadd_inputs.subsetContaining(coadd_coord, includeValidPolygon=True):
Expand Down Expand Up @@ -328,7 +328,7 @@ def test_coadd_psf(self):
to_check = ctx.choice(len(star_cat), size=n_object_test, replace=False)
n_good = 0
for index in to_check:
position = geom.Point2D(star_cat["x"].values[index], star_cat["y"].values[index])
position = geom.Point2D(np.asarray(star_cat["x"])[index], np.asarray(star_cat["y"])[index])
psf_image = coadd_psf.computeImage(position)
psf_image_bbox = psf_image.getBBox()
star_image = lsst.afw.image.ImageF(
Expand Down
Loading