fix bayesian limits being lists in the json output
This commit is contained in:
5
views.py
5
views.py
@@ -262,8 +262,9 @@ class UpperLimitView(APIView):
|
||||
confidence_level=confidence_level,
|
||||
)
|
||||
|
||||
bayesian_count_ul = high
|
||||
bayesian_count_ll = low
|
||||
# because poisson_conf_interval returns lists
|
||||
bayesian_count_ul = high[0]
|
||||
bayesian_count_ll = low[0]
|
||||
|
||||
bayesian_rate_ul = bayesian_count_ul / t / EEF # count rate limits
|
||||
bayesian_rate_ll = bayesian_count_ll / t / EEF
|
||||
|
Reference in New Issue
Block a user