Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ok. Here are the differences:

"ierr"

This is the error code resulting from applying any function in module psspy and it returns a value 0 if it was executed correctly or other integers if not. However, in case of your friend's code, he did not want to see this value. He just wanted to execute the branch data changing.

"psspy."

This has to be typed for any API in the module psspy. It is not mentioned in the API syntax description but if you run the API branch_data as it is shown in the documentation, it won't work.

"intgar="

instead of typing a full list of the integers you want to assign as parameters for the branch in question, you can just specify the parameters you want to change and the rest of the parameters will assume the default values (_i,_f,...etc)