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:
parent
382727f2d6
commit
57acaba63e
|
@ -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 --------------------------------
|
||||
|
|
Loading…
Reference in New Issue