src/dirbs/reports/base_operator_country.py
def _retrieve_condition_combination_table(self, _condition_combination_stats, classification_conditions):
        """Helper function uses to generate combinatorial per-condition stats."""
        condition_names = [c['label'] for c in classification_conditions]
        results = []
        for stats in _condition_combination_stats:
            condition_combination = stats.combination
            row = {}
            row['combination'] = dict(zip(condition_names, condition_combination))
            for x in ['num_imeis', 'num_imei_gross_adds', 'num_imei_imsis', 'num_imei_msisdns', 'compliance_level',
                      'num_subscriber_triplets']:
                row[x] = getattr(stats, x)
            results.append(row)
        return results
Helper function uses to generate combinatorial per-condition stats.
Helper function uses to generate combinatorial per-condition stats.
Helper function uses to generate combinatorial per - condition stats .
def _retrieve_condition_combination_table(self, _condition_combination_stats, classification_conditions):
        condition_names = [c['label'] for c in classification_conditions]
        results = []
        for stats in _condition_combination_stats:
            condition_combination = stats.combination
            row = {}
            row['combination'] = dict(zip(condition_names, condition_combination))
            for x in ['num_imeis', 'num_imei_gross_adds', 'num_imei_imsis', 'num_imei_msisdns', 'compliance_level',
                      'num_subscriber_triplets']:
                row[x] = getattr(stats, x)
            results.append(row)
        return results
def _retrieve_condition_combination_table ( self , _condition_combination_stats , classification_conditions ) : condition_names = [ c [ 'label' ] for c in classification_conditions ] results = [ ] for stats in _condition_combination_stats : condition_combination = stats . combination row = { } row [ 'combination' ] = dict ( zip ( condition_names , condition_combination ) ) for x in [ 'num_imeis' , 'num_imei_gross_adds' , 'num_imei_imsis' , 'num_imei_msisdns' , 'compliance_level' , 'num_subscriber_triplets' ] : row [ x ] = getattr ( stats , x ) results . append ( row ) return results
Helper function uses to generate combinatorial per-condition stats.
Helper function uses to generate combinatorial per - condition stats .
"""Helper function uses to generate combinatorial per-condition stats."""
self
_condition_combination_stats
classification_conditions