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]
whit loves you. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.