Skip to content

Commit

Permalink
fix bug in calculating emissions for the credits rule
Browse files Browse the repository at this point in the history
  • Loading branch information
anamileva committed Aug 29, 2023
1 parent 590d157 commit 97282d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gridpath/project/operations/carbon_credits.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ def generated_credits_rule(mod, prj, prd):
* mod.intensity_threshold_emissions_toCO2_per_MWh[prj, prd]
+ mod.absolute_threshold_emissions_toCO2[prj, prd]
- sum(
mod.Project_Carbon_Emissions[prj, tmp]
mod.Project_Carbon_Emissions[p, tmp]
* mod.hrs_in_tmp[tmp]
* mod.tmp_weight[tmp]
for (prj, tmp) in mod.CARBON_CREDITS_PRJ_OPR_TMPS
if mod.period[tmp] == prd
for (p, tmp) in mod.CARBON_CREDITS_PRJ_OPR_TMPS
if mod.period[tmp] == prd and p == prj
)
)

Expand Down

0 comments on commit 97282d6

Please sign in to comment.