We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.9.3
Windows 10
The as_dict method do not return the expected dictionnary for a specific action on the l2rpn_idf_2023 environment (see how to reproduce)
import grid2op from grid2op.Backend import PandaPowerBackend env = grid2op.make( "l2rpn_idf_2023", backend=PandaPowerBackend(detailed_infos_for_cascading_failures=False), ) act = { "set_bus": { "lines_or_id": [(0, 2)], "loads_id": [(0, 2)], }, } topo_action = env.action_space(act) print(topo_action.as_dict())
This returns :
{'set_bus_vect': {'nb_modif_objects': 2, '0': {'0': {'type': 'load', 'new_bus': 2}}, 'nb_modif_subs': 1, 'modif_subs_id': ['0']}}
The expected return should look like
{'set_bus_vect': {'nb_modif_objects': 2, '0': {'0': {'type': 'load', 'new_bus': 2}, '??': {'type': 'line (origin)', 'new_bus': 2}}, 'nb_modif_subs': 1, 'modif_subs_id': ['0']}}
When building the dictionnary in the as_dict method here
'0': {'type': 'line (origin)', 'new_bus': 2}
is first inserted in
res["set_bus_vect"]["0"]
and then
'0': {'type': 'load', 'new_bus': 2}
is inserted, thus overwriting the line information.
This comes from the fact that _obj_caract_from_topo_id (here) returns 0 as obj_id for both the line_or and the load, which is unfortunate.
Thank you very much for your help !
The text was updated successfully, but these errors were encountered:
adressing issue rte-france#511
2a4801a
No branches or pull requests
Environment
1.9.3
Windows 10
Bug description
The as_dict method do not return the expected dictionnary for a specific action on the l2rpn_idf_2023 environment (see how to reproduce)
How to reproduce
Current output
This returns :
Expected output
The expected return should look like
What I think is happening
When building the dictionnary in the as_dict method here
is first inserted in
and then
is inserted, thus overwriting the line information.
This comes from the fact that _obj_caract_from_topo_id (here) returns 0 as obj_id for both the line_or and the load, which is unfortunate.
Thank you very much for your help !
The text was updated successfully, but these errors were encountered: