fixed variable assignment error

This commit is contained in:
Никита Тырин 2025-05-27 11:07:38 +03:00
parent ebf8e11866
commit 85a96b5fb2

View File

@ -167,6 +167,15 @@ class UpperLimitView(APIView):
map_radius_value = request.query_params.get("mr") map_radius_value = request.query_params.get("mr")
# DEFINE APERTURE AND ANNULUS RADII
# **************************************************************
aperture_radius = 71 # radius of the aperture in arc seconds
# HPD ~48 arcseconds
# 90% ~100 arcseconds
annulus_inner = 142 # 2 * aperture_radius
annulus_outer = 284 # 4 * aperture_radius
# default value if not specified in the query # default value if not specified in the query
# get hpids within a circle of radius sqrt(2) * outer annulus radius # get hpids within a circle of radius sqrt(2) * outer annulus radius
if map_radius_value is None: if map_radius_value is None:
@ -182,15 +191,6 @@ class UpperLimitView(APIView):
gal = src_coord.galactic gal = src_coord.galactic
src_vec = hp.ang2vec(gal.l.deg, gal.b.deg, lonlat=True) src_vec = hp.ang2vec(gal.l.deg, gal.b.deg, lonlat=True)
# DEFINE APERTURE AND ANNULUS RADII
# **************************************************************
aperture_radius = 71 # radius of the aperture in arc seconds
# HPD ~48 arcseconds
# 90% ~100 arcseconds
annulus_inner = 142 # 2 * aperture_radius
annulus_outer = 284 # 4 * aperture_radius
# FETCH PIXEL DATA DEFINED VIA HP.QUERY_DISC (INCLUSIVE=FALSE) # FETCH PIXEL DATA DEFINED VIA HP.QUERY_DISC (INCLUSIVE=FALSE)
# ************************************************************** # **************************************************************