Skip to content

Commit

Permalink
Ensure things passed to q3c are float
Browse files Browse the repository at this point in the history
  • Loading branch information
mauch committed Oct 8, 2024
1 parent 5bf72be commit 1bd46d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vast_pipeline/pipeline/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ def get_create_skyreg(image: Image, radius: float = 10.) -> SkyRegion:
# Get SkyRegions and image radii areas within `radius` arcsec
radius_deg = radius/3600.
skyregions = SkyRegion.objects.cone_search(
ra=image.ra,
dec=image.dec,
radius_deg=radius_deg
ra=float(image.ra),
dec=float(image.dec),
radius_deg=float(radius_deg)
).filter(
xtr_radius__range=(
image.fov_bmin - radius_deg/2.,
Expand Down

0 comments on commit 1bd46d8

Please sign in to comment.