Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ascc_currents not working in v34

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\SCRScreening\v34Test\ASCCCURRENTSautodoublestocsvfileArpin345kV.py", line 349, in <module> outdata = calcscrsa(allpois) File "U:\PSSE\G-T Queue Studies\In Queue\DPP-2020\PSCAD\SCRScreening\v34Test\ASCCCURRENTSautodoublestocsvfileArpin345kV.py", line 214, in calcscrsa 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?

click to hide/show revision 2
No.2 Revision

ascc_currents not working in v34

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\SCRScreening\v34Test\ASCCCURRENTSautodoublestocsvfileArpin345kV.py", Queue\DPP-2020\PSCAD\SCR_Screening\v34_Test\ASCC_CURRENTS_auto_doubles_to_csv_file_Arpin_345kV.py", line 349, in <module>
    outdata out_data = calcscrsa(allpois)
calc_scrs_a(all_pois)
  File "U:\PSSE\G-T Queue Studies\In Queue\DPP-2020\PSCAD\SCRScreening\v34Test\ASCCCURRENTSautodoublestocsvfileArpin345kV.py", Queue\DPP-2020\PSCAD\SCR_Screening\v34_Test\ASCC_CURRENTS_auto_doubles_to_csv_file_Arpin_345kV.py", line 214, in calcscrsa
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)

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?