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

Indentation fault in backend.py to update_from_obs #561

Closed
tschuppr opened this issue Nov 29, 2023 · 1 comment
Closed

Indentation fault in backend.py to update_from_obs #561

tschuppr opened this issue Nov 29, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@tschuppr
Copy link

Environment

  • Grid2op version: 1.9.6
  • System: windows

Bug description

When shunts are not available in the update_from_obs function the act is not updated because of indentation mistake.

How to reproduce

Just put shunts_data_available to False in your backend and run test_update_from_obs in this file you will have an error because in _aux_test_back_orig_2 when calling :

self.backend.update_from_obs(obs)

There is an indentation fault at the end of the function for :

act.update(dict_)

it should be disindent

@tschuppr tschuppr added the bug Something isn't working label Nov 29, 2023
BDonnot referenced this issue in BDonnot/Grid2Op Nov 30, 2023
This was referenced Nov 30, 2023
@BDonnot
Copy link
Collaborator

BDonnot commented Dec 1, 2023

Fixed in 1.9.7, thanks for spotting this bug :-)

@BDonnot BDonnot closed this as completed Dec 1, 2023
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

No branches or pull requests

2 participants