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...

This commit is contained in:
Philip Eisenlohr 2016-04-22 13:19:32 -05:00
parent 382727f2d6
commit 57acaba63e
1 changed files with 1 additions and 2 deletions

View File

@ -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 --------------------------------