Closed jonasscheid closed 1 year ago
After rescoring with ms2rescore the rescoring_features values can contain various types:
rescoring_features
{<class 'numpy.int8'>, <class 'float'>, <class 'numpy.float32'>, <class 'numpy.float64'>, <class 'int'>, <class 'numpy.int64'>}
PeptideHit.setMetaValues however, does only allow in_1: int | float | bytes | str | List[int] | List[float] | List[bytes] as values. This then causes errors when writing / updating idXML files.
in_1: int | float | bytes | str | List[int] | List[float] | List[bytes]
I suggest converting to float if value is not type str
float
str
After rescoring with ms2rescore the
rescoring_features
values can contain various types:{<class 'numpy.int8'>, <class 'float'>, <class 'numpy.float32'>, <class 'numpy.float64'>, <class 'int'>, <class 'numpy.int64'>}
PeptideHit.setMetaValues however, does only allow
in_1: int | float | bytes | str | List[int] | List[float] | List[bytes]
as values. This then causes errors when writing / updating idXML files.I suggest converting to
float
if value is not typestr