Skip to content

Conversation

@FBumann
Copy link
Contributor

@FBumann FBumann commented Feb 10, 2026

External review on #580

I moved the assertion into broadcast_mask(), added a docstring and added 2 tests for superset dims

Checklist

  • Code changes are sufficiently documented; i.e. new functions contain docstrings and further explanations may be given in doc.
  • Unit tests for new features were added (if applicable).
  • A note for the release notes doc/release_notes.rst of the upcoming release is included.
  • I consent to the release of this PR's code under the MIT license.

@FBumann FBumann mentioned this pull request Feb 10, 2026
4 tasks
@FabianHofmann
Copy link
Collaborator

great!

@FabianHofmann FabianHofmann merged commit d7eb939 into PyPSA:reinsert-broadcasted-mask Feb 10, 2026
18 checks passed
lkstrp pushed a commit that referenced this pull request Feb 10, 2026
* reinsert broadcasting of masks

* update release notes

* consolidate broadcast mask into new function, add tests for subsets

* align test logic to broadcasting

* Reinsert broadcasted mask (#581)

* 1. Moved the dimension subset check into broadcast_mask
2. Added a brief docstring to broadcast_mask

* Add tests for superset dims

---------

Co-authored-by: FBumann <117816358+FBumann@users.noreply.github.com>
@FBumann
Copy link
Contributor Author

FBumann commented Feb 12, 2026

@FabianHofmann Did you get my email?

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