From 485f06a55589f21c6491eeaed0c1a06e0a8f7d10 Mon Sep 17 00:00:00 2001 From: Thomas Fetzer <thomas.fetzer@iws.uni-stuttgart.de> Date: Wed, 14 Jun 2017 11:19:15 +0200 Subject: [PATCH] [postprocessing] Correctly print available cell, point parameters Do not offer possibility for user input --- bin/postprocessing/exportscreenshot2d.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/postprocessing/exportscreenshot2d.py b/bin/postprocessing/exportscreenshot2d.py index bab3ce010d..aebb7e4ef1 100644 --- a/bin/postprocessing/exportscreenshot2d.py +++ b/bin/postprocessing/exportscreenshot2d.py @@ -77,8 +77,11 @@ for curFile in args['files']: vtuFile = XMLUnstructuredGridReader(FileName=curFile) if args['parameter'] == '': print "\nNo parameter was specified, use '-p PARAMETER' to specify it. Available parameters are:" - print vtuFile.CellArrayStatus - args['parameter'] = raw_input('Parameter: ') + if args['parameterType'] == 'CELLS': + print vtuFile.CellArrayStatus + else: + print vtuFile.PointArrayStatus + exit(1) # get active view renderView1 = GetActiveView() -- GitLab