From 57acaba63e86c8009be769c7e859ebd03ac04bbb Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Fri, 22 Apr 2016 13:19:32 -0500 Subject: [PATCH] Missed out on putting the if..else statement as a bracketed group in a former commit. Next try of getting rid of {True: a,False: b}[choice] style... --- processing/post/postResults.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/processing/post/postResults.py b/processing/post/postResults.py index bd624cac5..072146165 100755 --- a/processing/post/postResults.py +++ b/processing/post/postResults.py @@ -1003,8 +1003,7 @@ fileOpen = False assembleHeader = True header = [] standard = ['inc'] + \ - {True: ['time'], - False:[]}[options.time] + \ + (['time'] if options.time else []) + \ ['elem','node','ip','grain','1_pos','2_pos','3_pos'] # --------------------------- loop over positions --------------------------------