Switch problems for maintenance functions in the environment("l2rpn_wcci_2020")
Closed this issue · 2 comments
King9299 commented
Hello, we are using environment "l2rpn_wcci_2020" now. We want to turn off the maintenance function in environment "l2rpn_wcci_2020". May I ask how we should do it?
I'd appreciate it if you could answer.
BDonnot commented
Hello,
It depends on how the environment is created. But if you did not change it too much you can do:
import grid2op
from grid2op.Chronics import GridStateFromFileWithForecastsWithoutMaintenance
env = grid2op.make("l2rpn_wcci_2020",
data_feeding_kwargs={'gridvalueClass': GridStateFromFileWithForecastsWithoutMaintenance}
)
It will most likely work (I did not tested this code snippet so feel free to make sure there is no maintenance generated)
BDonnot commented
Any news on that ? (feel free to close the issue if it solves the issue. I'll close next week if no news)