Skip to content

Commit

Permalink
Merge pull request #295 from ORNL-AMO/issue-275-b
Browse files Browse the repository at this point in the history
Change solar thermal to always, fix multiplier placemet
  • Loading branch information
nbintertech authored Mar 25, 2024
2 parents ee2fbfa + e985492 commit 4ae1555
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -644,10 +644,11 @@ export class App extends React.PureComponent<unknown, AppState> {
projectCostSavingsDeduction += project.costSavings.budgetPeriodCostSavings.electricity;
projectCostSavingsDeduction += project.costSavings.budgetPeriodCostSavings.naturalGas;
// projectCostSavingsDeduction += project.costSavings.budgetPeriodCostSavings.hydrogen;
projectCostSavingsDeduction *= initialTrackedStats.projectCostSavingsMultiplier;
}
return projectCostSavingsDeduction;
}, 0);

projectCostSavingsDeduction *= initialTrackedStats.projectCostSavingsMultiplier;
newBudget -= projectCostSavingsDeduction;

// * patch in cost savings from select renewables
Expand All @@ -658,11 +659,11 @@ export class App extends React.PureComponent<unknown, AppState> {
projectSpecificCostSavings += project.costSavings.budgetPeriodCostSavings.naturalGas;
// projectSpecificCostSavings += project.costSavings.budgetPeriodCostSavings.hydrogen;
// todo renewedProjectCostSavingsMultiplier will yield different results than multiplier first applied to all projects above
// projectSpecificCostSavings *= initialTrackedStats.renewedProjectCostSavingsMultiplier;
projectSpecificCostSavings *= initialTrackedStats.projectCostSavingsMultiplier;
}
return projectSpecificCostSavings;
}, 0);

projectSpecificCostSavings *= initialTrackedStats.projectCostSavingsMultiplier;
newBudget += projectSpecificCostSavings;

return newBudget;
Expand Down
2 changes: 1 addition & 1 deletion src/Projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,7 @@ Projects[Pages.heatPumpForOffice] = new ProjectControl({
Projects[Pages.solarThermalHotWater] = new ProjectControl({
pageId: Pages.solarThermalHotWater,
isCapitalFundsEligible: true,
costSavingsCarryover: 'never',
costSavingsCarryover: 'always',
baseCost: 550_000,
financedAnnualCost: 55_000,
financedTotalCost: 550_000,
Expand Down

0 comments on commit 4ae1555

Please sign in to comment.