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
If you try to store and then load a serialized version of a Grid2Op action, this will usually work without a problem. However, there is an edge case where it fails (with a misleading/confusing error message) if the action modified all line statuses. This only happens if you modify all lines, even modify all-but-one will not throw the error. It also does not happen if you directly reload the action from the serialized form (i.e. the error only happens if you write and read the serialized form from file)
IllegalAction: Grid2OpExceptionIllegalAction "Impossibletomodifytheredispatchingwithyourinput. Pleaseconsultthedocumentation. Theerrorwas:
"too many indices for array: array is 1-dimensional, but 2 were indexed""
Expected output
Expect no error message to be thrown.
The text was updated successfully, but these errors were encountered:
Environment
1.11.0.dev0
arch
Bug description
If you try to store and then load a serialized version of a Grid2Op action, this will usually work without a problem. However, there is an edge case where it fails (with a misleading/confusing error message) if the action modified all line statuses. This only happens if you modify all lines, even modify all-but-one will not throw the error. It also does not happen if you directly reload the action from the serialized form (i.e. the error only happens if you write and read the serialized form from file)
How to reproduce
Minimal code to reproduce the error:
This results in the following error message:
Note from additional tests, this seems to also be the case for other action, e.g. with redispatch:
Will give the error message:
Expected output
Expect no error message to be thrown.
The text was updated successfully, but these errors were encountered: