@@ 759-771 (lines=13) @@ | ||
756 | result['reporting_period_efficiency']['values'] = list() |
|
757 | result['reporting_period_efficiency']['cumulations'] = list() |
|
758 | result['reporting_period_efficiency']['increment_rates'] = list() |
|
759 | if fraction_list is not None and len(fraction_list) > 0: |
|
760 | for fraction in fraction_list: |
|
761 | result['base_period_efficiency']['timestamps'].append(base[fraction['id']]['timestamps']) |
|
762 | result['base_period_efficiency']['values'].append(base[fraction['id']]['values']) |
|
763 | result['base_period_efficiency']['cumulations'].append(base[fraction['id']]['cumulation']) |
|
764 | result['reporting_period_efficiency']['names'].append(reporting[fraction['id']]['name']) |
|
765 | result['reporting_period_efficiency']['units'].append(reporting[fraction['id']]['unit']) |
|
766 | result['reporting_period_efficiency']['timestamps'].append(reporting[fraction['id']]['timestamps']) |
|
767 | result['reporting_period_efficiency']['values'].append(reporting[fraction['id']]['values']) |
|
768 | result['reporting_period_efficiency']['cumulations'].append(reporting[fraction['id']]['cumulation']) |
|
769 | result['reporting_period_efficiency']['increment_rates'].append( |
|
770 | (reporting[fraction['id']]['cumulation'] - base[fraction['id']]['cumulation']) / |
|
771 | base[fraction['id']]['cumulation'] if base[fraction['id']]['cumulation'] > Decimal(0.0) else None) |
|
772 | ||
773 | result['parameters'] = { |
|
774 | "names": parameters_data['names'], |
@@ 643-655 (lines=13) @@ | ||
640 | result['reporting_period_efficiency']['values'] = list() |
|
641 | result['reporting_period_efficiency']['cumulations'] = list() |
|
642 | result['reporting_period_efficiency']['increment_rates'] = list() |
|
643 | if fraction_list is not None and len(fraction_list) > 0: |
|
644 | for fraction in fraction_list: |
|
645 | result['base_period_efficiency']['timestamps'].append(base[fraction['id']]['timestamps']) |
|
646 | result['base_period_efficiency']['values'].append(base[fraction['id']]['values']) |
|
647 | result['base_period_efficiency']['cumulations'].append(base[fraction['id']]['cumulation']) |
|
648 | result['reporting_period_efficiency']['names'].append(reporting[fraction['id']]['name']) |
|
649 | result['reporting_period_efficiency']['units'].append(reporting[fraction['id']]['unit']) |
|
650 | result['reporting_period_efficiency']['timestamps'].append(reporting[fraction['id']]['timestamps']) |
|
651 | result['reporting_period_efficiency']['values'].append(reporting[fraction['id']]['values']) |
|
652 | result['reporting_period_efficiency']['cumulations'].append(reporting[fraction['id']]['cumulation']) |
|
653 | result['reporting_period_efficiency']['increment_rates'].append( |
|
654 | (reporting[fraction['id']]['cumulation'] - base[fraction['id']]['cumulation']) / |
|
655 | base[fraction['id']]['cumulation'] if base[fraction['id']]['cumulation'] > Decimal(0.0) else None) |
|
656 | ||
657 | result['parameters'] = { |
|
658 | "names": parameters_data['names'], |