update
This commit is contained in:
parent
04b881b5b6
commit
641c9421b2
@ -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.
|
||||
|
6
views.py
6
views.py
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user