Unable to write out using either rawd_2 or writerawversion

asked 2017-10-17 12:45:51 -0600

mbong gravatar image

updated 2017-10-18 11:06:06 -0600

We have machines that remotely execute PSSE python scripts on a set of machines (Windows 7). The python script that spawns PSSE and runs the simulation, works fine until it is time to write out the output file. Other files such as excel output files work fine but using rawd_2 generates a "incorrect file type OPTIN/...." This file (with slight modifications) works perfectly if I run it from the PSSE automation script GUI option, ie. it writes out the raw file. Is this a permission issue or am I using the syntax wrong as shown below.

oname = Case[:-4] + '_'+str(buslist[g])+'.raw'
psspy.rawd_2(0,1, out= 0,ofile=oname )
edit retag flag offensive close merge delete