First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

Extracting fault analysis data

asked Feb 18 '15

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

1 answer

Sort by » oldest newest most voted
0

answered Feb 20 '15

Transmission Impossible gravatar image

updated Feb 20 '15

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)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

Stats

Asked: Feb 18 '15

Seen: 985 times

Last updated: Feb 20 '15