Ask Your Question
0

How to grab island buses from tree() command?

asked 2023-04-20 14:42:43 -0500

PSSPYUser gravatar image

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2023-04-20 15:03:17 -0500

perolofl gravatar image

Try this:

islandbuses = [j for i in psspy.treedat(999)['island_busnum'] for j in i]
edit flag offensive delete link more

Comments

Thanks that was exactly what I needed!

PSSPYUser gravatar imagePSSPYUser ( 2023-04-20 15:10:55 -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

Stats

Asked: 2023-04-20 14:42:43 -0500

Seen: 185 times

Last updated: Apr 20 '23