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
- Load the Setup Example into PowerFactory
- On the execute object (ComPython) in PowerFactory, naivgate to the Script tab and add the path.
- 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

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
Expected behavior
The MTB should be run as expected creating the study cases and variations.
Actual behavior
An error is raised.
Evidence