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
|
assembleHeader = True
|
||||||
header = []
|
header = []
|
||||||
standard = ['inc'] + \
|
standard = ['inc'] + \
|
||||||
{True: ['time'],
|
(['time'] if options.time else []) + \
|
||||||
False:[]}[options.time] + \
|
|
||||||
['elem','node','ip','grain','1_pos','2_pos','3_pos']
|
['elem','node','ip','grain','1_pos','2_pos','3_pos']
|
||||||
|
|
||||||
# --------------------------- loop over positions --------------------------------
|
# --------------------------- loop over positions --------------------------------
|
||||||
|
|
Loading…
Reference in New Issue