Skip to content

Commit

Permalink
Better fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bittremieux committed Jul 11, 2024
1 parent 06cc0c9 commit e626c18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion casanovo/casanovo.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,9 @@ def setup_logging(
console_handler.setFormatter(console_formatter)
root_logger.addHandler(console_handler)
warnings_logger.addHandler(console_handler)
file_handler = logging.FileHandler(output.with_suffix(".log"))
file_handler = logging.FileHandler(
output.with_suffix(".log"), encoding="utf8"
)
file_handler.setFormatter(log_formatter)
root_logger.addHandler(file_handler)
warnings_logger.addHandler(file_handler)
Expand Down
2 changes: 1 addition & 1 deletion casanovo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def log_sequencing_report(
logger.info("Score Distribution:")
for score, pop in sorted(run_report["score_bins"].items()):
logger.info(
"%s spectra (%.2f%%) scored >= %.2f",
"%s spectra (%.2f%%) scored %.2f",
pop,
pop / num_spectra * 100,
score,
Expand Down

0 comments on commit e626c18

Please sign in to comment.