From b5958de1db40e32409c928b6b8bfafc844dea655 Mon Sep 17 00:00:00 2001 From: craig-warren Date: Tue, 17 Nov 2015 14:30:29 +0000 Subject: [PATCH] Corrected conversion of old to new style snapshot command syntax. --- tools/inputfile_old2new.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/inputfile_old2new.py b/tools/inputfile_old2new.py index 9ca78db3..a187059b 100644 --- a/tools/inputfile_old2new.py +++ b/tools/inputfile_old2new.py @@ -178,8 +178,8 @@ while(lindex < len(inputlines)): inputlines.pop(lindex) elif cmdname == '#snapshot': - # Syntax of old command: #snapshot: x1 y1 z1 x2 y2 z2 dx dy dz time filename type - replacement = '#snapshot: {} {} {} {} {} {} {} {} {} {} {}'.format(params[0], params[1], params[2], params[3], params[4], params[5], params[6], params[7], params[8], params[9], params[10]) + # 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]) print("Command '{}', replaced with '{}'".format(inputlines[lindex], replacement)) inputlines.pop(lindex) inputlines.insert(lindex, replacement)