Skip to content
Snippets Groups Projects
Commit 485f06a5 authored by Thomas Fetzer's avatar Thomas Fetzer
Browse files

[postprocessing] Correctly print available cell, point parameters

Do not offer possibility for user input
parent c4cbcf69
No related branches found
No related tags found
2 merge requests!600[WIP][components][plotproperties] Add a source file to plot properties of some components,!510[postprocessing] Add pvpython script to export 2d screenshots
...@@ -77,8 +77,11 @@ for curFile in args['files']: ...@@ -77,8 +77,11 @@ for curFile in args['files']:
vtuFile = XMLUnstructuredGridReader(FileName=curFile) vtuFile = XMLUnstructuredGridReader(FileName=curFile)
if args['parameter'] == '': if args['parameter'] == '':
print "\nNo parameter was specified, use '-p PARAMETER' to specify it. Available parameters are:" print "\nNo parameter was specified, use '-p PARAMETER' to specify it. Available parameters are:"
print vtuFile.CellArrayStatus if args['parameterType'] == 'CELLS':
args['parameter'] = raw_input('Parameter: ') print vtuFile.CellArrayStatus
else:
print vtuFile.PointArrayStatus
exit(1)
# get active view # get active view
renderView1 = GetActiveView() renderView1 = GetActiveView()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment