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

Add lifetime to solar-rooftop #162

Merged
merged 1 commit into from
Sep 8, 2021
Merged

Conversation

martavp
Copy link
Member

@martavp martavp commented Aug 24, 2021

Rooftop-solar generators are missing the lifetime attribute when they are added.

This avoids that they are saved as brownfield capacities installed in a previous timestep when running myopic optimization.
I.e, they are not captured in the following line

assets = c.df.index[~c.df.lifetime.isna() & c.df.build_year.isna()]

Rooftop-solar generators are missing the lifetime attribute when they are added.

This avoids that they are saved as brownfield capacities installed in a previous timestep when running myopic optimization. 
I.e, they are not captured in the following line
https://github.com/PyPSA/pypsa-eur-sec/blob/5b9f64354fb8cb6a8d9bfca361b5397347309ab3/scripts/add_existing_baseyear.py#L31
@fneum
Copy link
Member

fneum commented Sep 8, 2021

Great!

@fneum fneum merged commit fc378b8 into master Sep 8, 2021
@fneum fneum deleted the add-lifetime-to-solar-rooftop branch May 23, 2022 10:33
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