Skip to content

Commit c8419a1

Browse files
josenavasantgonza
authored andcommitted
Open demux read-only (#6)
1 parent 162c2f1 commit c8419a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiita_files/demux.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def to_per_sample_ascii(demux, samples=None):
462462

463463

464464
def _to_file(demux_fp, sample, fp, formatter):
465-
with open_file(demux_fp, 'r+') as demux:
465+
with open_file(demux_fp, 'r') as demux:
466466
with open(fp, 'wb') as out:
467467
for rec in _to_ascii(demux, [sample], formatter):
468468
out.write(rec)

0 commit comments

Comments
 (0)