Skip to content

Commit 8d186d0

Browse files
committed
cleanup stats wrapper
1 parent 7a6a014 commit 8d186d0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/stats_wrapper.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
smallfile.close()
2929
small_filename = 'small_file_{}.txt'.format(lineno + lines_per_file)
3030
smallfile = open(small_filename, "w")
31-
if num_small_file > 1:
32-
smallfile.write(f'chrom\tstart\tend\tsamples')
3331
smallfile.write(line)
3432
if smallfile:
3533
num_small_file += 1
@@ -49,5 +47,6 @@
4947
# Block copy rest of file from input to output without parsing
5048
shutil.copyfileobj(infile, outfile)
5149
print(fname + " has been imported.")
52-
os.remove('small_file*')
50+
for file in files:
51+
os.remove(file)
5352

0 commit comments

Comments
 (0)