How to grab island buses from tree() command?
Is there a way to save the island buses from the tree() command into an array?
Is there a way to save the island buses from the tree() command into an array?
Try this:
islandbuses = [j for i in psspy.treedat(999)['island_busnum'] for j in i]