From 239208b2b5e9b8d614b5a515a27b989899f99a96 Mon Sep 17 00:00:00 2001 From: craig-warren Date: Tue, 17 Nov 2015 14:33:02 +0000 Subject: [PATCH] More adjustments to conversion of old to new style snapshot command syntax. --- tools/inputfile_old2new.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/inputfile_old2new.py b/tools/inputfile_old2new.py index a187059b..cec17083 100644 --- a/tools/inputfile_old2new.py +++ b/tools/inputfile_old2new.py @@ -179,7 +179,7 @@ while(lindex < len(inputlines)): elif cmdname == '#snapshot': # Syntax of old command: #snapshot: i1 x1 y1 z1 x2 y2 z2 dx dy dz time filename type - replacement = '#snapshot: {} {} {} {} {} {} {} {} {} {} {} n'.format(params[1], params[2], params[3], params[4], params[5], params[6], params[7], params[8], params[9], params[10], params[11]) + replacement = '#snapshot: {} {} {} {} {} {} {} {} {} {} {}'.format(params[1], params[2], params[3], params[4], params[5], params[6], params[7], params[8], params[9], params[10], params[11]) print("Command '{}', replaced with '{}'".format(inputlines[lindex], replacement)) inputlines.pop(lindex) inputlines.insert(lindex, replacement)