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.6.4
windows
When calling "env.copy()" the opponent does not attack correctly.
This is probably due to an issue in the "seed" function.
import grid2op env = grid2op.make("l2rpn_icaps_2021", test=True) env.seed(3) env.reset() print(f"{env._opponent._attack_times = }") env_cpy = env.copy() print(f"{env._opponent._attack_times = }") print(f"{env_cpy._opponent._attack_times = }") ... # Some code
env._opponent._attack_times = array([ 5, 105, 180]) env._opponent._attack_times = array([ 5, 105, 180]) env_cpy._opponent._attack_times = array([], dtype=int32)
env._opponent._attack_times = array([ 5, 105, 180]) env._opponent._attack_times = array([ 5, 105, 180]) env_cpy._opponent._attack_times = array([ 5, 105, 180], dtype=int32)
The text was updated successfully, but these errors were encountered:
fixing issue rte-france#274
b42ca44
Successfully merging a pull request may close this issue.
Environment
1.6.4
windows
Bug description
When calling "env.copy()" the opponent does not attack correctly.
This is probably due to an issue in the "seed" function.
How to reproduce
Code snippet
Current output
Expected output
The text was updated successfully, but these errors were encountered: