Ask Your Question
0

ascc_currents not working in v34

asked 2021-02-04 14:11:07 -0500

damiensommer gravatar image

updated 2021-02-05 10:09:21 -0500

jconto gravatar image

I have a script that works fine in v33 to calculate SCRs. The script uses the ascc_currents API. When I try to run the same script on v34 I get the following error message:

Traceback (most recent call last):
  File "U:\PSSE\G-T Queue Studies\In Queue\DPP-2020\PSCAD\SCR_Screening\v34_Test\ASCC_CURRENTS_auto_doubles_to_csv_file_Arpin_345kV.py", line 349, in <module>
    out_data = calc_scrs_a(all_pois)
  File "U:\PSSE\G-T Queue Studies\In Queue\DPP-2020\PSCAD\SCR_Screening\v34_Test\ASCC_CURRENTS_auto_doubles_to_csv_file_Arpin_345kV.py", line 214, in calc_scrs_a
    tpunty=1,dcload=0,zcorec=0,lnchrg=2,shntop=2,loadop=2,machpq=1,volts=1.0)
TypeError: ascc_currents() takes exactly 2 arguments (1 given)

This is how I am using ascc_currents in the script:

    rlst = pssarrays.ascc_currents(sid=1,all=0,flt3ph=1,fltlg=1,fltllg=1,fltll=1,linout=1,linend=0,voltop=1,genxop=0,
    tpunty=1,dcload=0,zcorec=0,lnchrg=2,shntop=2,loadop=2,machpq=1,volts=1.0)

Any idea what I need to change to get this to work in v34?

edit retag flag offensive close merge delete

Comments

Contact Siemens PTI.

perolofl gravatar imageperolofl ( 2021-02-05 03:20:32 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2021-02-05 10:20:07 -0500

jconto gravatar image

Variable 'all' in v.33 is changed to 'busall' in v.34 The following works for me:

rlst=pssarrays.ascc_currents(sid=sid, busall=busall, 
               flt3ph=flt3ph, fltlg=fltlg, fltllg=fltllg,fltll=fltll,                                 
               voltop=voltop, genxop=genxop, tpunty=tpunty, lnchrg=lnchrg, 
               shntop=shntop, loadop=loadop,machpq=machpq,volts=volts,
               linout=linout, linend=linend,dcload=dcload, zcorec= zcorec, 
               relfile=relfile, fcdfile=fcdfile, scfile=scfile)
edit flag offensive delete link more

Comments

That worked, thanks! How did you figure that out? I did not see that update in the API manual that came with v34.

damiensommer gravatar imagedamiensommer ( 2021-02-11 08:55:07 -0500 )edit

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

1 follower

Stats

Asked: 2021-02-04 14:11:07 -0500

Seen: 1,077 times

Last updated: Feb 05 '21