psspy tree PSSE command API
What's the best way to check for island buses? I found the psspy.tree(1,0) but unfortunately, if there are no island buses, it throws an error when I change the option to 2 to disconnect all island buses. What I would like to do is check if there are island buses not equal to zero, then execute the psspy.tree(2,1).