Skip to content

PowerFactory setup example outdated. #320

Description

@ZRPedro

Description

The PowerFactory WECC example on the main branch is not updated with the latest MTB PowerFactory component. When running the script it raises an error.

The main issue is that the latest MTB component has a signal for available active power Pavail_sub, and in the setup example this does not appear. So the script raises an issue.

It will be very nice for the users to have an example setup that the user will simply need to change the path on the execute object and press execute to run all the cases. This will make it easier to understand the tool and also easier to collaborate on it.

This is the error on the output windows:
err - Traceback (most recent call last):
File "", line 29, in
File "C:\Developer\Github\MTB\execute_pf.py", line 549, in
main()
~~~~^^
File "C:\Developer\Github\MTB\execute_pf.py", line 438, in main
addCustomSubscribers(thisScript, channels)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "C:\Developer\Github\MTB\execute_pf.py", line 331, in addCustomSubscribers
pavail_conf = convertToConfStr('Pavail', 'mtb_s_pavail_pu')
File "C:\Developer\Github\MTB\execute_pf.py", line 322, in convertToConfStr
assert isinstance(sub_attrib, str)
~~~~~~~~~~^^^^^^^^^^^^^^^^^
AssertionError

err - Python Script 'execute' stopped at error

Steps to reproduce

  1. Load the Setup Example into PowerFactory
  2. On the execute object (ComPython) in PowerFactory, naivgate to the Script tab and add the path.
  3. Execute the PowerFactory object (ComPython)

Expected behavior

The MTB should be run as expected creating the study cases and variations.

Actual behavior

An error is raised.

Evidence

Image Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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