0

VAR array access

is there a way to access "var" variable in psse using python API?

Jack's avatar
11
Jack
asked 2017-05-02 15:02:17 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

0

@perolofl was right.

more detailedly, the starting indexes of VAR, CON, ICON, STATE can be returned by API like mdlind, lmodind, etc., and the index for the data you want is based on the model documentary.

Linzhi's avatar
1
Linzhi
answered 2017-07-06 21:53:50 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

You can access the var value with:

ierr, rval = psspy.dsrval('VAR', indx)

where indx is the VAR index.

perolofl's avatar
3.8k
perolofl
answered 2017-05-04 00:52:24 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer