0

How to filter out dummy buses which belong to multi-section lines?

Is there any psspy routine to identify these dummy buses?

bikiran1991's avatar
47
bikiran1991
asked 2021-04-13 12:45:56 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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.

perolofl's avatar
3.8k
perolofl
answered 2021-04-14 11:47:10 -0500
edit flag offensive 0 remove flag delete link

Comments

thanks a lot!

bikiran1991's avatar bikiran1991 (2021-04-14 12:08:22 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer