Skip to content

Commit

Permalink
Merge pull request #195 from compomics/IM2Deep-utf8-patch
Browse files Browse the repository at this point in the history
Update im2deep utf8 error
  • Loading branch information
ArthurDeclercq authored Sep 27, 2024
2 parents 50002a9 + bef90dd commit 4df5740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ms2rescore/feature_generators/im2deep.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def add_features(self, psm_list: PSMList) -> None:

# Disable wild logging to stdout by TensorFlow, unless in debug mode
with (
contextlib.redirect_stdout(open(os.devnull, "w"))
contextlib.redirect_stdout(open(os.devnull, "w", encoding="utf-8"))
if not self._verbose
else contextlib.nullcontext()
):
Expand Down

0 comments on commit 4df5740

Please sign in to comment.