Skip to content

Commit

Permalink
fix: limit excel export sheet names
Browse files Browse the repository at this point in the history
  • Loading branch information
Paradoxdruid committed Sep 2, 2023
1 parent 6fb63ae commit 466ea8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyllelic/pyllelic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 466ea8d

Please sign in to comment.