From 13ef187cfdbe6a79fe8e6b4b999209f707fa08d5 Mon Sep 17 00:00:00 2001 From: chen Date: Mon, 11 Mar 2019 18:15:38 -0400 Subject: [PATCH 1/3] update financial_income, remiving /100 Need BlocNote to be updated accordingly. --- bpfin/financials/financial_income.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpfin/financials/financial_income.py b/bpfin/financials/financial_income.py index ef3c8b2..eaf1cfa 100644 --- a/bpfin/financials/financial_income.py +++ b/bpfin/financials/financial_income.py @@ -167,7 +167,7 @@ class Income_Statement_Next(): if growth_rate_flag == -2.0: # growth_rate_flag == cagr growth_rate = characters['cagr'] else: - growth_rate = growth_rate_flag/100 # growth_rate_flag == 0.00, 1.0, 2.0 ... + growth_rate = growth_rate_flag # growth_rate_flag == 0.00, 1.0, 2.0 ... current_revenue = last_revenue * (1 + growth_rate) self.revenue = current_revenue self.electric_opex = annual_bill_table[UTILITY_TYPE_LIST[0]][self.year] -- GitLab From 6150974f6dd7f85174b8b9437ac032d711a73260 Mon Sep 17 00:00:00 2001 From: chen Date: Mon, 11 Mar 2019 18:23:40 -0400 Subject: [PATCH 2/3] update comment for growth rate --- bpfin/financials/financial_income.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpfin/financials/financial_income.py b/bpfin/financials/financial_income.py index eaf1cfa..6576bb0 100644 --- a/bpfin/financials/financial_income.py +++ b/bpfin/financials/financial_income.py @@ -167,7 +167,7 @@ class Income_Statement_Next(): if growth_rate_flag == -2.0: # growth_rate_flag == cagr growth_rate = characters['cagr'] else: - growth_rate = growth_rate_flag # growth_rate_flag == 0.00, 1.0, 2.0 ... + growth_rate = growth_rate_flag # passed in growth_rate_flag == 0.00, 0.01, 0.02 ... current_revenue = last_revenue * (1 + growth_rate) self.revenue = current_revenue self.electric_opex = annual_bill_table[UTILITY_TYPE_LIST[0]][self.year] -- GitLab From aae0e90c59205e7e930a97c8955be10b324b08d2 Mon Sep 17 00:00:00 2001 From: chen Date: Mon, 11 Mar 2019 18:29:44 -0400 Subject: [PATCH 3/3] update test_financial_income test case data --- bpfin/tests/test_financials/test_financial_income.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpfin/tests/test_financials/test_financial_income.py b/bpfin/tests/test_financials/test_financial_income.py index 89b2e51..f61f654 100644 --- a/bpfin/tests/test_financials/test_financial_income.py +++ b/bpfin/tests/test_financials/test_financial_income.py @@ -84,7 +84,7 @@ def test_Income_Statement_Table_1(): 'proforma_duration': 6}, ) output_table.project( - growth_rate_flag = 2, + growth_rate_flag = 0.02, annual_bill_table = annual_bill_table, ) result_characters = { -- GitLab