Switching machines via bus number in python script
Does anyone know if there is a way to remotely switch the machines/generators off within a python script instead of going through the PSSE interface and manually switching off the exact generator? I want to do it systematically by bus number
at this point this is what im using
ierr = psspy.machinechng2(bus_numbers[1], '1', [], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])