0

How to grab island buses from tree() command?

Is there a way to save the island buses from the tree() command into an array?

PSSPYUser's avatar
3
PSSPYUser
asked 2023-04-20 14:42:43 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Try this:

islandbuses = [j for i in psspy.treedat(999)['island_busnum'] for j in i]
perolofl's avatar
3.8k
perolofl
answered 2023-04-20 15:03:17 -0600
edit flag offensive 0 remove flag delete link

Comments

Thanks that was exactly what I needed!

PSSPYUser's avatar PSSPYUser (2023-04-20 15:10:55 -0600) edit
add a comment see more comments

Your Answer

Login/Signup to Answer