Skip to content

Stochastic Network: refactor and add tests#1040

Merged
Irieo merged 5 commits intostoch_pypsafrom
stoch_pypsa_refactor
Sep 24, 2024
Merged

Stochastic Network: refactor and add tests#1040
Irieo merged 5 commits intostoch_pypsafrom
stoch_pypsa_refactor

Conversation

@FabianHofmann
Copy link
Copy Markdown
Contributor

No description provided.

@FabianHofmann FabianHofmann requested a review from Irieo September 22, 2024 22:01
)
min_pu = pd.DataFrame(0, *max_pu.axes)
if attr == "state_of_charge":
max_pu = self.get_switchable_as_dense(c, "max_hours", sns, inds=index)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FabianHofmann for state_of_charge case this line does not work since
sn.pnl(component).keys() does not contain max_hours attr.
we can (i) roll back to my workaround, or (ii) more generally, make get_stichable_as_dense handle such cases.
go for the latter?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, let's go for the latter. I'll push a commit

@Irieo Irieo merged commit e5e4848 into stoch_pypsa Sep 24, 2024
@lkstrp lkstrp deleted the stoch_pypsa_refactor branch December 9, 2024 16:19
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