Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upkeep: add_green_technologies_to_abcd only adds techs if they are not already there #480

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

jdhoffa
Copy link
Member

@jdhoffa jdhoffa commented Mar 15, 2024

While working on a separate PR, I noticed some odd behaviour of this internal function.

The point of add_green_technologies_to_abcd is to add green technologies to a matched input dataset if they are not already present. This serves to ensure that green technologies always get a forward-looking target (as is the expectation of SMSP).

However, this function was erroneously adding the technologies no matter what (even if they were already present in the input). I guess this problem was evened out somewhere else in some call to summarize, but I figured it makes sense to just fix it where it happens.

See #318 for more info.

No related issue.

@jdhoffa jdhoffa requested a review from cjyetman March 15, 2024 10:19
@jdhoffa jdhoffa merged commit 170d4b0 into main Mar 15, 2024
24 checks passed
@jdhoffa jdhoffa deleted the fix_add_green_technologies branch March 15, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants