Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

abusint returning ierr=1 (working case is empty)

I'm trying to setup a subsystem in order to get a list of buses from the case. However, with the code below, abusint returns ierr = 1 even though the case has valid buses and the values in the "areas" list are all valid areas. Any ideas?

Thanks in advance for the help

ierr = psspy.psseinit(12000)
    print(ierr)
    psspy.case=(r'C:\PTI\case.sav')
    subsystemnumber = 1
    ierr = psspy.bsysinit(1)
    psspy.bsysdef(1, 1)
    areas = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ,12]
    no_areas = len(areas)
    ierr = psspy.bsys(subsystemnumber, numarea=no_areas, areas=areas)
    print ierr
    buses = ()
    ierr, buses = psspy.abusint(subsystemnumber, 2, "NUMBER")
    print buses