How to grab island buses from tree() command?
Is there a way to save the island buses from the tree() command into an array?
First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
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]
Thanks that was exactly what I needed!
Asked: 2023-04-20 14:42:43 -0600
Seen: 210 times
Last updated: Apr 20 '23