Skip to content

Commit

Permalink
conditionally show warning
Browse files Browse the repository at this point in the history
  • Loading branch information
adfarth committed Nov 26, 2024
1 parent c357ddf commit a26e268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constraints/emissions_constraints.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function add_emissions_constraints(m,p)
(1-p.s.site.CO2_emissions_reduction_max_fraction) * m[:Lifecycle_Emissions_Lbs_CO2_BAU]
)
end
else
elseif !isnothing(p.s.site.CO2_emissions_reduction_min_fraction) || !isnothing(p.s.site.CO2_emissions_reduction_max_fraction)
@warn "No emissions reduction constraints added, as BAU emissions have not been calculated."
end
end
Expand Down

0 comments on commit a26e268

Please sign in to comment.