From 466ea8dfedbf1a62777ecfe22cee8d62fb2f0e31 Mon Sep 17 00:00:00 2001 From: Paradoxdruid Date: Sat, 2 Sep 2023 16:02:39 -0600 Subject: [PATCH] fix: limit excel export sheet names --- pyllelic/pyllelic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyllelic/pyllelic.py b/pyllelic/pyllelic.py index 4fd33fe..e880c08 100644 --- a/pyllelic/pyllelic.py +++ b/pyllelic/pyllelic.py @@ -453,7 +453,8 @@ def save(self, filename: str = "output.xlsx") -> None: with pd.ExcelWriter(self.config.base_directory.joinpath(filename)) as writer: for name, each in self.quma_results.items(): - each.values.to_excel(writer, sheet_name=name) + each.values.to_excel(writer, sheet_name=name[0:28]) + # Limit sheet name for Excel 31-character limitation def save_pickle(self, filename: str) -> None: """Save GenomicPositionData object as a pickled file.