Ask Your Question

read and create files in psse

asked 2019-03-21 20:30:59 -0500

anonymous user


updated 2019-03-21 22:32:47 -0500

jconto gravatar image

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'
   dyrfile  = P.Path+'/'+P.Plant+'/'+P.DYR+'.dyr'

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\", line 26, in <module>
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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-03-22 02:29:04 -0500

perolofl gravatar image

updated 2019-03-22 03:48:42 -0500

You have double equal sign, i.e. a Comparison Operator:


It should just be a single equal sign for assignment:

edit flag offensive delete link more

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


Asked: 2019-03-21 20:30:59 -0500

Seen: 67 times

Last updated: Mar 22