Skip to content

Commit

Permalink
fix: properly transfer data from tempfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysnewell committed Jan 11, 2024
1 parent c857eb6 commit d9f8f7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aviary/scripts/singlem_reads.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ def _check_processes(self, max_processes: int, logf):
while len(self.process_queue) > max_processes:
for i, (p, f) in enumerate(self.process_queue):
if p.poll() is not None:
f.seek(0)
logf.write(f.read())
for line in f:
logf.write(line)
f.close()
self.process_queue.pop(i)
break
Expand Down

0 comments on commit d9f8f7d

Please sign in to comment.