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

fix: delete_branch3 used wrong argument name #29

Merged
merged 1 commit into from
Feb 4, 2025
Merged

Conversation

vincentkoppen
Copy link
Contributor

@vincentkoppen vincentkoppen commented Feb 4, 2025

Fix: delete_branch3 crashes on GraphContainer

Currently the delete_branch3 has a different api from add_branch3 and the container called it wrongly.
https://github.com/PowerGridModel/power-grid-model-ds/blob/00a7d2dcc4b8732efd1bf46d9915fc94b1c338e9/src/power_grid_model_ds/_core/model/graphs/container.py#L83C19-L83C39

This fixes the integration to the container and makes the API identical to add_branch3 and adds somes tests for it.

@vincentkoppen vincentkoppen added the bug Something isn't working label Feb 4, 2025
@Thijss Thijss merged commit acc890f into main Feb 4, 2025
20 checks passed
@Thijss Thijss deleted the fix/delete_branch3 branch February 4, 2025 08:42
Thijss pushed a commit that referenced this pull request Feb 5, 2025
Thijss added a commit that referenced this pull request Feb 5, 2025
* feat: improve downstream nodes performance with local search

Signed-off-by: jaapschoutenalliander <[email protected]>

* test: add testing on sorting

Signed-off-by: jaapschoutenalliander <[email protected]>

* chore: update performance test

Signed-off-by: jaapschoutenalliander <[email protected]>

* Add .find_connected method and alter .get_downstream_nodes

Signed-off-by: Thijs Baaijen <[email protected]>

* Update test_get_downstream_nodes

Co-authored-by: jaapschoutenalliander <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>

* Update performance tests

Co-authored-by: jaapschoutenalliander <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>

* rename to find_first_connected and update docstring

Signed-off-by: Thijs Baaijen <[email protected]>

* Feature: add Grid.from_txt method

Signed-off-by: Thijs Baaijen <[email protected]>

* support unordered branches

Signed-off-by: Thijs Baaijen <[email protected]>

* update documentation

Signed-off-by: Thijs Baaijen <[email protected]>

* update gitignore

Signed-off-by: Thijs Baaijen <[email protected]>

* update documentation

Signed-off-by: Thijs Baaijen <[email protected]>

* fix test

Signed-off-by: Thijs Baaijen <[email protected]>

* update downstream tests

Signed-off-by: Thijs Baaijen <[email protected]>

* ruff

Signed-off-by: Thijs Baaijen <[email protected]>

* switch to regex for better text support

Signed-off-by: Thijs Baaijen <[email protected]>

* add support for both list[str] and str

Signed-off-by: Thijs Baaijen <[email protected]>

* add test for docstring

Signed-off-by: Thijs Baaijen <[email protected]>

* switch to args input

Signed-off-by: Thijs Baaijen <[email protected]>

* fix constants for graph performance tests (#28)

Signed-off-by: Thijs Baaijen <[email protected]>

* fix: delete_branch3 used wrong argument name (#29)

Signed-off-by: Vincent Koppen <[email protected]>

* chore: remove unused/nonfunctional cache on graphcontainer (#30)

Signed-off-by: Vincent Koppen <[email protected]>

* Feature: add Grid.from_txt method

Signed-off-by: Thijs Baaijen <[email protected]>

* support unordered branches

Signed-off-by: Thijs Baaijen <[email protected]>

* update documentation

Signed-off-by: Thijs Baaijen <[email protected]>

* update gitignore

Signed-off-by: Thijs Baaijen <[email protected]>

* update documentation

Signed-off-by: Thijs Baaijen <[email protected]>

* fix test

Signed-off-by: Thijs Baaijen <[email protected]>

* update downstream tests

Signed-off-by: Thijs Baaijen <[email protected]>

* add TestFindFirstConnected

Signed-off-by: Thijs Baaijen <[email protected]>

* remove re module implementation

Signed-off-by: Thijs Baaijen <[email protected]>

* bump minor

Signed-off-by: Thijs Baaijen <[email protected]>

* re-add grid logic from downstream nodes
Co-authored-by: jaapschoutenalliander <[email protected]>

Signed-off-by: Thijs Baaijen <[email protected]>

---------

Signed-off-by: jaapschoutenalliander <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Vincent Koppen <[email protected]>
Co-authored-by: jaapschoutenalliander <[email protected]>
Co-authored-by: Vincent Koppen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants