How to filter out dummy buses which belong to multi-section lines?
Is there any psspy routine to identify these dummy buses?
add a comment
Is there any psspy routine to identify these dummy buses?
No, there is no API returning only the dummy buses.
It can be done by this function:
def getmsldummies(sid=-1, flag=2):
ierr, iarray = psspy.abusint(sid,flag, ['NUMBER','DUMMY'])
duml = []
for ibus,idum in zip(*iarray):
if idum == 1: duml.append(ibus)
return duml
The function returns a list with all multi-section line dummy buses.