Skip to content

[Bug] Add self._prevent_automatic_disconnection: bool = False Attribute in __init__ #17

@RalfCortes

Description

@RalfCortes

The latest grid2op version (1.12.3) changed the default flag from False to True in

grid2op/grid2op/Backend

L 203

self._prevent_automatic_disconnection: bool = True # Was false with 1.12.2

While this is probably a wanted behavior, pypowsybl2grid did not account for this and is missing the attribute self._prevent_automatic_disconnection, and inherit this from the Base Backend class.

We need to allow detachments (and automatic disconnection) so add self._prevent_automatic_disconnection: bool = False in the init of the backend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions