Ask Your Question
0

Extracting fault analysis data

asked 2015-02-18 13:21:15 -0500

ZohaibHassanAwan gravatar image

I am running a fault analysis from python script using psspy.iecs3(1,0,[0,1,0,0,1,0,1,0,0,0,3,3,0,0,1],[ 0.0833, 1.0],"","","") and then i am trying to extract the fault analysis output using rlst = pssarrays.iecscurrents(1,0,0,1,0,0,1,0,0,0,3,3,0,0,1,0.0833) Z_pstv = rlst.thevz[0]['z1'] but it gives the following error

Z_pstv = rlst.thevz[0]['z1'] TypeError: list indices must be integers

Kindly suggest a remedy

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-20 07:50:40 -0500

Transmission Impossible gravatar image

updated 2015-02-20 07:52:16 -0500

As the error message states, you can't use ['z1'] the way you do here. What you probably want is:

rlsp = pssarrays.iecs_currents(1,0,0,1,0,0,1,0,0,0,3,3,0,0,1,0.0833)
Z_pstv = rlst.thevz[0].z1

Now to verify that this gives meaningful results (for my grid):

print Z_pstv
(5.92823457718+18.1242160797j)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Stats

Asked: 2015-02-18 13:21:15 -0500

Seen: 967 times

Last updated: Feb 20 '15