This commit is contained in:
Никита Тырин 2025-05-08 15:01:07 +03:00
parent 04b881b5b6
commit 641c9421b2
2 changed files with 1 additions and 7 deletions

View File

@ -27,7 +27,7 @@ Syntax: python manage.py load_survey --counts='*path_to_counts_map*' --exposure=
**Before public deployment views providing direct pixel data should be altered to not include it in the response json.**
- PixelAggregateView:
Mostly for troubleshooting, outputs the aggregated data across specified surveys for a healpix pixel.
For testing, outputs the aggregated data across specified surveys for a healpix pixel.
Returns:
Sum of counts and exposure over specified surveys for the specified pixel.

View File

@ -38,12 +38,6 @@ def parse_survey_param(raw: str) -> list[int]:
# **************************************************************
class PixelAggregateView(APIView):
"""
GET /pixel-aggregate/?pixel=<hpid>&survey=<spec>
- <spec> can be a single number (e.g. 5),
a CSV list (e.g. 1,3,7) or a hyphen range (e.g. 2-5).
Returns sums of counts & exposure across the selected surveys.
"""
def get(self, request):
# GET PARAMETERS FROM THE QUERY