Skip to content

Commit

Permalink
outputs: turn on 'constant_memory' for xlsxwriter Workbook (fixes 'me…
Browse files Browse the repository at this point in the history
…rge_range' errors).
  • Loading branch information
pjbriggs committed Dec 5, 2023
1 parent 0a10ddf commit f1930fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pegs/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ def make_xlsx_file(xlsx_file,peaks,clusters,distances,pvalues,counts,
for x in clusters]

# Output workbook
xlsx_out = xlsxwriter.Workbook(xlsx_file)
xlsx_out = xlsxwriter.Workbook(xlsx_file,
{'constant_memory': True})

# Make separate sheets for each set of values
ws_common_genes = xlsx_out.add_worksheet("Common Genes")
Expand Down

0 comments on commit f1930fe

Please sign in to comment.