Grid2Op
Grid2Op copied to clipboard
'h_forecast' bug when creating env without forecast for l2rpn_idf_2023
Environment
- Grid2op version:
1.9.8
- System:
ubuntu20.04, ...
Bug description
When loading the environemnt l2rpn_idf_2023 without forecast, this error is returned:
TypeError: init() got an unexpected keyword argument 'h_forecast'
How to reproduce
Code snippet
import grid2op
from grid2op.Chronics import GridStateFromFile
env = grid2op.make("l2rpn_idf_2023",
data_feeding_kwargs={"gridvalueClass": GridStateFromFile})
Current output
TypeError: __init__() got an unexpected keyword argument 'h_forecast'
Expected output
No error should be returned, and the h_forecast parameter should be disregarded in this case when not considering forecasts.
To deactivate the forecast you can also do : youhttps://grid2op.readthedocs.io/en/latest/environment.html#grid2op.Environment.BaseEnv.deactivate_forecast
(and I'll fix this ASAP)
That's indeed a workaround I was thinking about, I can confirm it to IRT now, thanks!
Ideally both should be done for maximum performance. I'll work on the fix asap
Fixed in 1.10.1 :-)