Commit a008d331 authored by MARIJON Pierre's avatar MARIJON Pierre

correct error of encoding

parent 749d1d3e
......@@ -221,8 +221,8 @@ def canu_only(template_path, canu_correction_report, canu_fasta, canu_bog_gfa,
_load_canu_only_info(param, canu_contig_on_paf, canu_contig_on_paf_legend)
with open(out_filename, "w") as f :
f.write(template.render(param))
with open(out_filename, "wb") as f :
f.write(template.render(param).encode("utf-8"))
@begin.subcommand
def canu_minimap(template_path, canu_correction_report, canu_fasta, canu_bog_gfa,
......@@ -244,8 +244,8 @@ def canu_minimap(template_path, canu_correction_report, canu_fasta, canu_bog_gfa
_load_minimap_info(param, minimap_paf, canu_contig_on_minimap, canu_contig_on_minimap_legend, mini_path_search_result)
with open(out_filename, "w") as f :
f.write(template.render(param))
with open(out_filename, "wb") as f :
f.write(template.render(param).encode("utf-8"))
@begin.subcommand
def canu_miniasm(template_path, canu_correction_report, canu_fasta, canu_bog_gfa,
......@@ -270,8 +270,8 @@ def canu_miniasm(template_path, canu_correction_report, canu_fasta, canu_bog_gfa
_load_miniasm_info(param, miniasm_gfa, miniasm_png)
with open(out_filename, "w") as f :
f.write(template.render(param))
with open(out_filename, "wb") as f :
f.write(template.render(param).encode("utf-8"))
@begin.start
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment