Closed mbarton closed 4 months ago
I can see the national aggregations should have been created from the logs
django-1 | DEBUG [epilepsy12.common_view_functions.aggregate_by:401] updated National KPIAggregations for England and Wales (Cohort 6)
I can also view it in the Django admin.
It appears to be barfing on sodium_valproate
and indeed the values are zero here:
'sodium_valproate_passed': 0, 'sodium_valproate_total_eligible': 0, 'sodium_valproate_ineligible': 92, 'sodium_valproate_incomplete': 0
The calculations within create_KPI_aggregation_dataframe
have division by zero protection so I suspect the same needs to be applied at the national level here too
1) Wipe your local instance 2) Seed new cases in cohort 6 3) Download the KPI report