From 424d5288e7dec59851dd0920dd10a5d261834b35 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 8 Jan 2013 12:31:36 +0100 Subject: scripts: csv2sto.py: Print scaling message before opening files --- scripts/csv2sto.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/csv2sto.py b/scripts/csv2sto.py index 5515e84..9609a99 100755 --- a/scripts/csv2sto.py +++ b/scripts/csv2sto.py @@ -76,6 +76,10 @@ def main(): fd.close() + print "Writing sto file %s with name %s" % (f_sto, name) + if maxtime != DEFAULT_MAXTIME: + print "Scaling to maxtime %f" % maxtime + fd_sto = open(f_sto, 'w') fd_sto.write(name + "\n") fd_sto.write("version=1\n") @@ -83,10 +87,6 @@ def main(): fd_sto.write("nColumns=" + str(tot_nCols) + "\n") fd_sto.write("endheader\n") - print "Writing sto file %s with name %s" % (f_sto, name) - if maxtime != DEFAULT_MAXTIME: - print "Scaling to maxtime %f" % maxtime - fd_sto.write("time") for f_csv in fs_csv: colname = os.path.splitext(os.path.basename(f_csv))[0] -- cgit v1.2.3-54-g00ecf