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 bug in the MultifolderWithCache.seed method #670

Merged
merged 3 commits into from
Dec 1, 2024

Conversation

EBoguslawski
Copy link
Contributor

If you use MultifolderWithCache to handle chronics and if you filter chronics to keep chronics with high indexes (indexes higher than the number of selected chronics), then you obtain an "index out of bounds" bug.
This PR adresses this bug by modifying the shape on the concerned array and adding a test.

Signed-off-by: EBoguslawski <[email protected]>
Signed-off-by: EBoguslawski <[email protected]>
Copy link

sonarcloud bot commented Nov 29, 2024

Copy link
Collaborator

@BDonnot BDonnot left a comment

Choose a reason for hiding this comment

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

Looks and thanks for the added tests

@BDonnot BDonnot merged commit 5a335c0 into Grid2op:dev_1.11.0 Dec 1, 2024
13 checks passed
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