June 10th, 2004, 01:13 PM
Basic Error -Need Help?????
Hi 2 all,
when i run it it gives me following error:
"NameError: name 'process' is not defined."
Can anybody look at it and tell me what is problem?
My scriptcode is indented)
inpd1 = DataFile.ReadDataFile()
out1pd = process(inpd1) #local function
outstream = mix( inpd.stream1 )
outpd = processdata()
outpd.stream1 = outstream
outpd.massflow = outstream.massflow
outpd.pressure = outstream.pressure
outpd.temperature = outstream.temperature
outpd.components = outstream.components
outpd.volume_flow = outstream.massflow / inpd.density_of_material
June 10th, 2004, 01:31 PM
Next time, post your code within [code] and [/code] tags to indent it correctly. As to your specific bug, move the code for def process: above the line where you call process()
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
June 11th, 2004, 09:34 AM
Thanks man. It is working now. Next time i will make sure code it indented.