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

Enable to load grid2op data with pickle #376

Closed
marota opened this issue Nov 25, 2022 · 1 comment
Closed

Enable to load grid2op data with pickle #376

marota opened this issue Nov 25, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@marota
Copy link
Contributor

marota commented Nov 25, 2022

Environment

  • Grid2op version: 1.7.2
  • System: ubuntu20.04, ...

Bug description

From grid2op version 1.7.1, trying in grid2viz to load with pickle a "dill" dump of grid2op data fails and return "AttributeError: type object 'ActionWCCI2022_input_data_test' has no attribute 'process_grid2op_shunt_data". Works in 1.7.0

Is there a typo in "process_grid2op_shunt_data" here https://github.com/rte-france/Grid2Op/blob/51854262d02d96c1ee1798a78a86661d1ff971a1/grid2op/Space/GridObjects.py#L3742 ? As the method does not seem to exist in grid2op package, but "process_shunt_data" exists. Replacing by "process_shunt_data" does not raise the error anymore and let the loading with pickle runs fine.

How to reproduce

Code snippet

import grid2op

... # Some code 
import pickle
import gzip
pickle.load(gzip.open("pathTo/maze-rl_only_topo_2050-01-10_1.dill.bz", "rb"))

Here is the file to unzip to reproduce it
maze-rl_only_topo_2050-01-10_1.zip

@marota marota added the bug Something isn't working label Nov 25, 2022
@BDonnot
Copy link
Collaborator

BDonnot commented Dec 5, 2022

Duplicate of #365

@BDonnot BDonnot marked this as a duplicate of #365 Dec 5, 2022
@BDonnot BDonnot closed this as completed Dec 5, 2022
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