Smarter Python traces
I worked with a user today trying to get scripts ready to process hundreds of large exodus runs. This was a time consuming and detailed endeavor. I would like to propose the following:
Lets add code, commented out, to all Python scripts that trivially allow the Python to be controled through parameters. In other words, something like this:
# The following code can be uncommented, and used with parameters.
# You would then use this code as follows to batch process lots of directories:
# ../pvbatch thisBatchFile directoryIn1 fileIn1 directoryOut1 fileOut1
# ../pvbatch thisBatchFile directoryIn2 fileIn2 directoryOut2 fileOut2
# ../pvbatch thisBatchFile directoryIn3 fileIn3 directoryOut3 fileOut3
# Uncomment the following lines to use parametres, and comment out the exodusReader0.
# inputDirectoryName = argument[1]
# inputFileName = argument[2]
# outputDirectoryName = argument[3]
# outputFileName = argument[4]
# exodusReader0 = ExodusReader([inputDirectoryName+inputFileName+'.e.1234.0000'])
exodusReader0 = ExodusReader('/home/alan/data/pizzaInput/myfile.e.1234.0000'])
do really important and complex stuff
# SaveScreenshot(outputDirectoryName+outputFileName+'.png')
SaveScreenshot(/home/alan/data/pizzaOutput/myfile.png')