Skip to content

Commit 4df5740

Browse files
Merge pull request #195 from compomics/IM2Deep-utf8-patch
Update im2deep utf8 error
2 parents 50002a9 + bef90dd commit 4df5740

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ms2rescore/feature_generators/im2deep.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def add_features(self, psm_list: PSMList) -> None:
8888

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

0 commit comments

Comments
 (0)