Skip to content

Commit

Permalink
fix: do not read entire files in memory
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Oct 24, 2024
1 parent d8f9cf0 commit fb1cc06
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions workflow/rules/init.smk
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ def append_files_in_list(flist, ofile):
with open(ofile, "w") as outfile:
for fname in flist:
with open(fname) as infile:
l = infile.read()
l = l.strip()
outfile.write("%s\n" % (l))
for line in infile:
outfile.write(line)
return True


Expand Down

0 comments on commit fb1cc06

Please sign in to comment.