Skip to content

Commit

Permalink
fix double gz extension
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMainguy committed Dec 19, 2023
1 parent eaf58ab commit de37a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ppanggolin/formats/writeFlatPangenome.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def write_gexf(output: Path, light: bool = True, compress: bool = False):
txt += "light gexf file for the pangenome graph..." if light else "gexf file for the pangenome graph..."

logging.getLogger("PPanGGOLiN").info(txt)
outname = output / f"pangenomeGraph{'_light' if light else ''}.gexf{'.gz' if compress else ''}"
outname = output / f"pangenomeGraph{'_light' if light else ''}.gexf"
with write_compressed_or_not(outname, compress) as gexf:
graph_type = 'ligth gexf' if light else 'gexf'
logging.getLogger("PPanGGOLiN").debug(f"Writing the {graph_type} header...")
Expand Down

0 comments on commit de37a89

Please sign in to comment.