Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
ierr,bus = psspy.abusint(string='NUMBER')

This yields you bus object that looks like this: [[1,2,3,4,5]], so when you zip(*bus), you get [([1,2,3,4,5],)] back, which is probably what you don't want. Instead use this:

ierr, [bus] = psspy.abusint(string='NUMBER')

This unpacks it so the bus object is a flat list [1,2,3,4,5] and zip(*bus) yields [(1,), (2,), (3,), (4,), (5,)]