First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
answered 2023-04-20 15:03:17 -0600
Try this:
islandbuses = [j for i in psspy.treedat(999)['island_busnum'] for j in i]