You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{'detailed_infos_for_cascading_failures': False, 'can_be_copied': True, 'solver_type': None, 'max_iter': 10, 'tol': 1e-08}
~/Grid2Op/grid2op/MakeEnv/Make.py:394: UserWarning: You are using a development environment. This environment is not intended for training agents. It might not be up to date and its primary use if for tests (hence the "test=True" you passed as argument). Use at your own risk.
warnings.warn(_MAKE_DEV_ENV_WARN)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
~/Grid2Op/grid2op/multi_agent/test.ipynb Cell 29' in <cell line: 3>()
[1](~/Grid2Op/grid2op/multi_agent/test.ipynb#ch0000049?line=0) print(bk_cls()._my_kwargs)
[2](~/Grid2Op/grid2op/multi_agent/test.ipynb#ch0000049?line=1) env = make("l2rpn_case14_sandbox", test = True, backend = bk_cls()).copy()
----> [3](~/Grid2Op/grid2op/multi_agent/test.ipynb#ch0000049?line=2) print(env.backend._my_kwargs)
AttributeError: 'LightSimBackend_l2rpn_case14_sandbox' object has no attribute '_my_kwargs'
Expected output
{'detailed_infos_for_cascading_failures': False, 'can_be_copied': True, 'solver_type': None, 'max_iter': 10, 'tol': 1e-08}
~/Grid2Op/grid2op/MakeEnv/Make.py:394: UserWarning: You are using a development environment. This environment is not intended for training agents. It might not be up to date and its primary use if for tests (hence the "test=True" you passed as argument). Use at your own risk.
warnings.warn(_MAKE_DEV_ENV_WARN)
{'detailed_infos_for_cascading_failures': False, 'can_be_copied': True, 'solver_type': None, 'max_iter': 10, 'tol': 1e-08}
The text was updated successfully, but these errors were encountered:
BDonnot
changed the title
The backend is not properly copied by env's copy method
Lightsim2grid backend is not properly copied by env's copy method
Jul 13, 2022
Environment
dev_multiagent
ubuntu20.04.3 LTS
Bug description
When we copy the env with
env.copy()
, the backend loses, at least,_my_kwargs
attribute. Here, I used the lightsim2grid backend.How to reproduce
Try the following code on a notebook or python terminal
Code snippet
Current output
Expected output
The text was updated successfully, but these errors were encountered: