From f1930fecd52b2fc984261571c2081cf3a2964043 Mon Sep 17 00:00:00 2001 From: Peter Briggs Date: Tue, 5 Dec 2023 17:17:01 +0000 Subject: [PATCH] outputs: turn on 'constant_memory' for xlsxwriter Workbook (fixes 'merge_range' errors). --- pegs/outputs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pegs/outputs.py b/pegs/outputs.py index 3f61bf0..7520989 100644 --- a/pegs/outputs.py +++ b/pegs/outputs.py @@ -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")