Skip to content

[bug] PowerFactory Conversion crashes with sg == None #2936

@jwiemer112

Description

@jwiemer112

Bug report checklis

  • Searched the issues page for similar reports

  • Read the relevant sections of the documentation

  • Browse the tutorials and tests for usefull code snippets and examples of use

  • Reproduced the issue after updating with pip install --upgrade pandapower (or git pull)

  • Tried basic troubleshooting (if a bug/error) like restarting the interpreter and checking the pythonpath

Reproducible Example

function create_sgen_genstat(...)
If sg is None the code crashes.

Issue Description and Traceback

The converter crashes if there are elements (e.g. static generators) in powerfactory which have no connection to bus (node). The converter cant convert these elements as buses a necessary for the create_ functions.

function create_sgen_genstat(...)
If sg is None the code crashes.

Expected Behavior

Create new dummy buses to convert everything or skip the elements (if sg is None ...) with a logger warning.

Installed Versions

  • python version: * pandas version: * networkx version: * scipy version: * numpy version: * packaging version: * tqdm version: * deepdiff version: * Operating System name/version:

Label

  • Relevant labels are selected

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions