psspy.asys doesn't work !
Hi friends,
I am trying to define a subsystem consisting of two areas, numbered in PSS/E as 19 and 20.
This is my code:
subsystem_number = 4 ## desired, could be anything between 0 and 11, right ?
areas = [19,20] ## these areas DO exist
number_of_areas_to_set = len(areas)
ierr = psspy.asys(subsystem_number, number_of_areas_to_set, areas)
print ierr
ierr, areas = psspy.aareacount(subsystem_number, _i)
print areas
print ierr
ierr, numbers = psspy.abusint(subsystem_number, _i,"NUMBER")
print numbers
On the screen, I get:
0
2
0
[None]
Please, does anyone know why my numbers array comes empty ??!!
Thanks a lot,
Andre
P.S. Have just found out this forum, very useful, thanks !
Hi Andre, glad you liked the forum. I've come across the same problem as you many, many times. - Just edited the question to include code formatting.