Skip to content

Commit

Permalink
Combine cases macro checks lifetime mode prior to assessing simulatio…
Browse files Browse the repository at this point in the history
…n timestep
  • Loading branch information
brtietz committed Feb 18, 2025
1 parent 22a010b commit 8f63460
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/combinecases.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@ void CombineCasesDialog::OnEvt(wxCommandEvent& e)
analysis_period_this = current_case->Values(0).Get("c_lifetime")->Value();
}
else if (financial_name != "None") {
bool use_lifetime = current_case->Values(0).Get("system_use_lifetime_output")->Boolean();
analysis_period_this = current_case->Values(0).Get("analysis_period")->Value();
analysis_period_this = use_lifetime ? analysis_period_this : 1;
}

// determine hourly generation profile of current case
Expand Down

0 comments on commit 8f63460

Please sign in to comment.