Skip to content

Remove GenericStorageBlock.init_content#1180

Merged
p-snft merged 5 commits into
devfrom
fix/remove_variable_init_content
Mar 24, 2025
Merged

Remove GenericStorageBlock.init_content#1180
p-snft merged 5 commits into
devfrom
fix/remove_variable_init_content

Conversation

@p-snft

@p-snft p-snft commented Mar 14, 2025

Copy link
Copy Markdown
Member

For some reason, GenericStorageBlock.init_content was still defined and (half way) used in some cases. This removes it, as we (should) just use GenericStorageBlock.storage_content[n, m.TIMESTEPS.at(1) instead.

Fixes #1176.

The variable should have been removed, we use m.TIMESTEPS.at(1) instead.
@p-snft p-snft self-assigned this Mar 14, 2025
p-snft added 2 commits March 14, 2025 21:43
Having more time points than time steps (last commit) also increases
the number on non-zeros. Forgot to adjust that.
@jfreissmann

Copy link
Copy Markdown
Contributor

All changes are sensible and look alright to me.

@maltefritz maltefritz left a comment

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.

I am not able to assess the TSAM part as I haven't dealt with it yet. However, it seems coherent to me. The rest looks great and makes sense.

@p-snft p-snft merged commit 421104d into dev Mar 24, 2025
@p-snft p-snft deleted the fix/remove_variable_init_content branch March 24, 2025 11:13
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.

On dev branch GenericInvestStorageBlock is no longer able to enforce the 'balanced' constraint

3 participants