From bef90ddbf2a38d08d9846d3184e614ab662dc575 Mon Sep 17 00:00:00 2001 From: ArthurDeclercq Date: Fri, 27 Sep 2024 16:43:39 +0200 Subject: [PATCH] Update im2deep utf8 error --- ms2rescore/feature_generators/im2deep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ms2rescore/feature_generators/im2deep.py b/ms2rescore/feature_generators/im2deep.py index 552b7280..772f6855 100644 --- a/ms2rescore/feature_generators/im2deep.py +++ b/ms2rescore/feature_generators/im2deep.py @@ -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() ):