Commit 9f4558a2 authored by Federico Asara's avatar Federico Asara

Read the number of lines to skip at the beginning of the data file from argv.

parent 5293b895
......@@ -9,7 +9,7 @@ src.close()
dest = open(argv[2], "w")
dest.write("[SIGNAL]\nnbits = %s\nrate = %s\ndata = " % (argv[3], argv[4]))
dest.writelines('\t%d\n ' % i for i in lines[48:])
dest.writelines('\t%d\n ' % i for i in lines[int(argv[6]):])
dest.close()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment