Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered Feb 6 '5

perolofl gravatar image

The best way to find the API to perform a certain task in PSSE is to:

  1. Start recording of a Python file
  2. Perform the task manually, in this case switch off the generator.
  3. Stop recording and copy relevant parts to your script.

Se also post How to pass only certain elements of an array in function.

In your case the integer array is empty and all reals are set to 0! This is completely wrong.

It should be ierr = psspy.machine_chng_2(bus_numbers[1], '1', [0], []).