Skip to content

Commit

Permalink
Update autograph labels for IPH models.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorbrown75 committed Nov 14, 2024
1 parent f3667d5 commit 5968429
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions deploy/runtime/autographs.lk
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,21 @@ function battery_btm_monthly_graph_hybrid()
//**************Categories of graphs for financials**************************
function rescom_financial_graphs()
{
if (technology() != "Standalone Battery") { //No monthly_energy for standalone battery
agraph( 'monthly_energy,year1_monthly_load', 'Monthly AC Energy and Load in Year 1', '', 'kWh', -1, true, true, 'bottom' );
tech = technology();
monthly_energy_label = 'Monthly AC Energy and Load in Year 1';
cf_energy_net_label = 'Electricity Net Generation';
year1_monthly_load_var = 'year1_monthly_load';
if(tech == "MSPT IPH" || tech == "MSLF IPH" || tech == "Physical Trough IPH" || tech == "DSGL IPH")
{
monthly_energy_label = 'Monthly Thermal Energy and Load in Year 1';
cf_energy_net_label = 'Thermal Net Generation';
year1_monthly_load_var = 'year1_monthly_load_heat';
}
if (tech != "Standalone Battery") { //No monthly_energy for standalone battery
agraph( 'monthly_energy,'+year1_monthly_load_var, monthly_energy_label, '', 'kWh', -1, true, true, 'bottom' );
}
agraph( 'cf_after_tax_cash_flow', 'After Tax Cash Flow- System Lifetime', '', '$' );
agraph( 'cf_energy_net', 'Electricity Net Generation', 'Year', 'kWh', -1, true, false,'bottom' );
agraph( 'cf_energy_net', cf_energy_net_label, 'Year', 'kWh', -1, true, false,'bottom' );
}

function third_party_graphs()
Expand Down Expand Up @@ -129,7 +139,13 @@ function mp_revenue_graphs()

function ppa_financial_graphs()
{
agraph( 'cf_energy_net', 'Electricity Net Generation', 'Year', 'kWh', -1, true, false,'bottom' );
tech = technology();
cf_energy_net_label = 'Electricity Net Generation';
if(tech == "MSPT IPH" || tech == "MSLF IPH" || tech == "Physical Trough IPH" || tech == "DSGL IPH")
{
cf_energy_net_label = 'Thermal Net Generation';
}
agraph( 'cf_energy_net', cf_energy_net_label, 'Year', 'kWh', -1, true, false,'bottom' );
agraph( 'cf_project_return_aftertax', 'Project After-tax Cash Flow', 'Year', '$', -1, true, false, 'bottom' );
}

Expand Down

0 comments on commit 5968429

Please sign in to comment.