From 04b881b5b601b7f5364f2591596ef1b3069efc6c Mon Sep 17 00:00:00 2001 From: tyrin Date: Thu, 8 May 2025 15:00:16 +0300 Subject: [PATCH] update --- README.md | 2 +- views.py | 25 ++++++++----------------- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 69ed292..87015a7 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ART-XC upper limits django application - load_survey -Allows to populate the database with data for a survey in healpix format. Takes about 1h40m for an nside=4096 map to load using sqlite. +Allows to populate the database with data for a survey in healpix format. Takes about 100 minutes for an nside=4096 map to load using sqlite. Supports resuming after interruption. Syntax: python manage.py load_survey --counts='*path_to_counts_map*' --exposure='*path_to_exposure_map*' --survey=*integer survey number* diff --git a/views.py b/views.py index b8bc6eb..e4370d6 100644 --- a/views.py +++ b/views.py @@ -124,16 +124,7 @@ class PixelAggregateView(APIView): class UpperLimitView(APIView): """ - Calclassic_count_ulate and return upper limits (UL, CRUL, FLUL) based on provided RA, DEC, and CL parameters. - - Args: - request: HTTP GET request containing 'ra', 'dec', and 'cl' query parameters. - - Returns: - Response object with JSON data containing calclassic_count_ulated UL, CRUL, and FLUL values. - - Raises: - ValueError if provided parameters are invalid. + Calculate confidence bounds based on aperture photometry using classic and bayesian methods """ def get(self, request): @@ -329,12 +320,12 @@ class UpperLimitView(APIView): 'FluxEstimate' : Flux, - 'N' : N, - 'Nnpix' : Nnpix, - 'Bcounts' : Bcounts, - 'Bnpix' : Bnpix, - 'B' : B, - 'tsum' : tsum, - 't' : t + # 'N' : N, + # 'Nnpix' : Nnpix, + # 'Bcounts' : Bcounts, + # 'Bnpix' : Bnpix, + # 'B' : B, + # 'tsum' : tsum, + # 't' : t }, status=status.HTTP_200_OK) \ No newline at end of file