Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

read and create files in psse

Dear friends, I have a question about the these lines of code. Case = P.Path+'/'+P.Plant+'/'+P.Event+'/'+P.Raw+'-'+P.Event+'.raw' plbfile = P.Path+'/'+P.Plant+'/'+P.Event+'/'+'AN.plb' SCADAfile=P.Path+'/'+P.Plant+'/'+P.Event+'/'+'scada'+'-'+P.Raw+'-'+P.Event+'.dat' dyrfile = P.Path+'/'+P.Plant+'/'+P.DYR+'.dyr' OutFile=P.Path+'/'+P.Plant+'/00-OUT/plot-'+P.Raw+'-'+P.Event+'-'+P.DYR+'.out' I can not define the Outfile, actually I found this code that works for other but I can not run it. when I run it, I give this error. Traceback (most recent call last): File "C:\NLLtopsse\new.py", line 26, in <module> OutFile=='C:\model\PlantB.out' NameError: name 'OutFile' is not defined But the path is ok. can anyone help me with that? what is the outfile and how to solve it? Thank you very much

click to hide/show revision 2
No.2 Revision

read and create files in psse

Dear friends, I have a question about the these lines of code. code.

  Case = P.Path+'/'+P.Plant+'/'+P.Event+'/'+P.Raw+'-'+P.Event+'.raw'
   plbfile  = P.Path+'/'+P.Plant+'/'+P.Event+'/'+'AN.plb'
   SCADAfile=P.Path+'/'+P.Plant+'/'+P.Event+'/'+'scada'+'-'+P.Raw+'-'+P.Event+'.dat'
   dyrfile  = P.Path+'/'+P.Plant+'/'+P.DYR+'.dyr'
   OutFile=P.Path+'/'+P.Plant+'/00-OUT/plot-'+P.Raw+'-'+P.Event+'-'+P.DYR+'.out'

I can not define the Outfile, actually I found this code that works for other but I can not run it. when I run it, I give this error. error.

Traceback (most recent call last):
  File "C:\NLLtopsse\new.py", line 26, in <module>
    OutFile=='C:\model\PlantB.out'
NameError: name 'OutFile' is not defined

But the path is ok. can anyone help me with that? what is the outfile and how to solve it? Thank you very much