src/dirbs/reports/base_operator_country.py
def _retrieve_historic_conditions_breakdown(self, conditions_breakdown, historic_condition_stats,
                                                classification_conditions):
        """Retrieve the conditions sparklines data as a dict (condition label -> list of counts)."""
        historic_conditions_stats = [self._retrieve_condition_results(cs, classification_conditions)
                                     for cs in historic_condition_stats]
        historic_conditions_breakdown = defaultdict(list)
        for c in classification_conditions:
            cond_name = c['label']
            for hs in historic_conditions_stats:
                historic_conditions_breakdown[cond_name].append(hs[cond_name])
            historic_conditions_breakdown[cond_name].append(conditions_breakdown[cond_name])
        return historic_conditions_breakdown
Retrieve the conditions sparklines data as a dict (condition label -> list of counts).
Retrieve the conditions sparklines data as a dict (condition label -> list of counts).
Retrieve the conditions sparklines data as a dict ( condition label - > list of counts ) .
def _retrieve_historic_conditions_breakdown(self, conditions_breakdown, historic_condition_stats,
                                                classification_conditions):
        historic_conditions_stats = [self._retrieve_condition_results(cs, classification_conditions)
                                     for cs in historic_condition_stats]
        historic_conditions_breakdown = defaultdict(list)
        for c in classification_conditions:
            cond_name = c['label']
            for hs in historic_conditions_stats:
                historic_conditions_breakdown[cond_name].append(hs[cond_name])
            historic_conditions_breakdown[cond_name].append(conditions_breakdown[cond_name])
        return historic_conditions_breakdown
def _retrieve_historic_conditions_breakdown ( self , conditions_breakdown , historic_condition_stats , classification_conditions ) : historic_conditions_stats = [ self . _retrieve_condition_results ( cs , classification_conditions ) for cs in historic_condition_stats ] historic_conditions_breakdown = defaultdict ( list ) for c in classification_conditions : cond_name = c [ 'label' ] for hs in historic_conditions_stats : historic_conditions_breakdown [ cond_name ] . append ( hs [ cond_name ] ) historic_conditions_breakdown [ cond_name ] . append ( conditions_breakdown [ cond_name ] ) return historic_conditions_breakdown
Retrieve the conditions sparklines data as a dict (condition label -> list of counts).
Retrieve the conditions sparklines data as a dict ( condition label - > list of counts ) .
"""Retrieve the conditions sparklines data as a dict (condition label -> list of counts)."""
self
conditions_breakdown
historic_condition_stats
classification_conditions