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

Line Disconnection bug in _BackendAction fix #319

Conversation

anton-musrevinu
Copy link
Contributor

Due to an indexing error int the update_state method of the _BackendAction lines with idx 0 and -1(and sometimes 1) are sometimes disconnected.

A script to reproduce the bug is given below. Here a seed was found that produces the bug after a few steps.
reproduce_stepping_bug.zip

…update_state method.

The previous implementation of the method disables line with idx (0, -1) sometimes due to an indexing error.
@BDonnot
Copy link
Collaborator

BDonnot commented May 17, 2022

Hello,

Thanks a lot for this pull request and nice catch of this bug !

I will have a look at the code you joined and try to submit you a PR with the proper test. Once merged into your code, I will merge it here.

I think it will be better that there is a identified test before merging (to prevent any reappearing of this bug)

Benjamin

@anton-musrevinu
Copy link
Contributor Author

anton-musrevinu commented May 18, 2022

Hi Benjamin,

Thanks for adding the tests.
Anton

@BDonnot
Copy link
Collaborator

BDonnot commented May 18, 2022

Hi :-)

Can you merge the pull request I made here: anton-musrevinu#1

Once done, I will merge this PR to the main repo.

Thanks :-)

@anton-musrevinu
Copy link
Contributor Author

Sounds good, I just merged the tests :)

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.

Thanks for solving this tricky issue !

@BDonnot BDonnot merged commit 6ef873a into rte-france:dev_1.7.1 May 18, 2022
@BDonnot BDonnot mentioned this pull request Jun 3, 2022
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