diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-01-08 12:31:36 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-01-08 12:31:36 +0100 |
commit | 424d5288e7dec59851dd0920dd10a5d261834b35 (patch) | |
tree | 64339e1e2409c6c12de9a9606d4ecea6fec3bdcb | |
parent | f6728b98a3002b9ea00281bc2479a4581321b886 (diff) |
scripts: csv2sto.py: Print scaling message before opening files
-rwxr-xr-x | scripts/csv2sto.py | 8 |
1 files changed, 4 insertions, 4 deletions
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] |