Spaces:
Sleeping
Sleeping
Durand D'souza
commited on
Fix column order
Browse files
model.py
CHANGED
|
@@ -242,6 +242,31 @@ def calculate_cashflow_for_renewable_project(
|
|
| 242 |
)
|
| 243 |
)
|
| 244 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
## Do some sanity checks
|
| 246 |
# Check that the debt outstanding at the end of the loan period is zero
|
| 247 |
assert (
|
|
|
|
| 242 |
)
|
| 243 |
)
|
| 244 |
|
| 245 |
+
# Rearrange columns so that they are always in the same order
|
| 246 |
+
model = model[
|
| 247 |
+
[
|
| 248 |
+
"Period",
|
| 249 |
+
"Capacity_MW",
|
| 250 |
+
"Capacity_Factor",
|
| 251 |
+
"Tariff_per_MWh",
|
| 252 |
+
"Total_Generation_MWh",
|
| 253 |
+
"Total_Revenues_mn",
|
| 254 |
+
"O_M_Costs_mn",
|
| 255 |
+
"Total_Operating_Costs_mn",
|
| 256 |
+
"EBITDA_mn",
|
| 257 |
+
"CFADS_mn",
|
| 258 |
+
"Debt_Outstanding_EoP_mn",
|
| 259 |
+
"Interest_Expense_mn",
|
| 260 |
+
"Amortization_mn",
|
| 261 |
+
"Debt_Outstanding_BoP_mn",
|
| 262 |
+
"Target_Debt_Service_mn",
|
| 263 |
+
"Depreciation_mn",
|
| 264 |
+
"Taxable_Income_mn",
|
| 265 |
+
"Tax_Liability_mn",
|
| 266 |
+
"Post_Tax_Net_Equity_Cashflow_mn",
|
| 267 |
+
]
|
| 268 |
+
]
|
| 269 |
+
|
| 270 |
## Do some sanity checks
|
| 271 |
# Check that the debt outstanding at the end of the loan period is zero
|
| 272 |
assert (
|