Skip to content

Conversation

@Thijss
Copy link
Member

@Thijss Thijss commented Dec 10, 2025

I'd like to use these methods in the tests in #100
Besides that, I think they're useful additions

piggyback: move some existing tests into new modules following #122

ToDo:

  • SonarCloud issues

from power_grid_model_ds._core.model.containers.helpers import container_equal

__all__ = ["FancyArray", "FancyArrayContainer", "concatenate", "unique", "sort", "array_equal"]
__all__ = ["FancyArray", "FancyArrayContainer", "concatenate", "unique", "sort", "array_equal", "container_equal"]
Copy link
Member Author

Choose a reason for hiding this comment

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

Seemed to me the most logical place to put it... I would like to expose this, so our team can use it on other containers too.

Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
@Thijss Thijss changed the title Add Grid.__eq__ and Grid.is_equal methods Add Grid.__eq__ and container_equal methods Dec 11, 2025
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
@sonarqubecloud
Copy link

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