Ask Your Question

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

asked 2021-04-13 12:45:56 -0500

bikiran1991 gravatar image

Is there any psspy routine to identify these dummy buses?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2021-04-14 11:47:10 -0500

perolofl gravatar image

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.

edit flag offensive delete link more


thanks a lot!

bikiran1991 gravatar imagebikiran1991 ( 2021-04-14 12:08:22 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower


Asked: 2021-04-13 12:45:56 -0500

Seen: 50 times

Last updated: Apr 14