I ran the code getting_started_api.ipynb in the Pycharm with chroniX2grid 1.0.2. But there is an error saying "grid2op.Exceptions.BackendExceptions.BackendError: Grid2OpException BackendError "Impossible to load the redispatching data. The generator 19 with the name gen_41_19 could not be located on the description file "prods_charac.csv"." Does anyone have a similiar issue? Here is the Traceback. Thank you!
Traceback (most recent call last):
File "C:\Users\Derrick\AppData\Local\Programs\Python\Python39\lib\site-packages\grid2op\Backend\Backend.py", line 1369, in load_redispacthing_data
tmp_gen = gen_info[gen_nm]
KeyError: 'gen_41_19'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Derrick\Downloads\DS3L\RL_getstarted\getting_started_api.py", line 90, in
env118_withoutchron = grid2op.make(
File "C:\Users\Derrick\AppData\Local\Programs\Python\Python39\lib\site-packages\grid2op\MakeEnv\Make.py", line 392, in make
return make_from_path_fn(
File "C:\Users\Derrick\AppData\Local\Programs\Python\Python39\lib\site-packages\grid2op\MakeEnv\MakeFromPath.py", line 764, in make_from_dataset_path
env = Environment(
File "C:\Users\Derrick\AppData\Local\Programs\Python\Python39\lib\site-packages\grid2op\Environment\Environment.py", line 161, in init
self._init_backend(
File "C:\Users\Derrick\AppData\Local\Programs\Python\Python39\lib\site-packages\grid2op\Environment\Environment.py", line 231, in _init_backend
self.backend.load_redispacthing_data(self.get_path_env())
File "C:\Users\Derrick\AppData\Local\Programs\Python\Python39\lib\site-packages\grid2op\Backend\Backend.py", line 1371, in load_redispacthing_data
raise BackendError(
grid2op.Exceptions.BackendExceptions.BackendError: Grid2OpException BackendError "Impossible to load the redispatching data. The generator 19 with name gen_41_19 could not be located on the description file "prods_charac.csv"."
Sorry for the delayed response. Are you running the notebook without modification or are you using a different grid/Grid2op environment ?