From 9f6cdaf9d050f7aa8a70e1b590d694e45c013c08 Mon Sep 17 00:00:00 2001 From: Armin Soleymaniniya Date: Mon, 28 Aug 2023 18:22:28 +0200 Subject: [PATCH] Dirty fix for internal pipeline -> Don't hash and put scan event number as ScanNr --- spectrum_fundamentals/metrics/percolator.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spectrum_fundamentals/metrics/percolator.py b/spectrum_fundamentals/metrics/percolator.py index b123156..6c33add 100644 --- a/spectrum_fundamentals/metrics/percolator.py +++ b/spectrum_fundamentals/metrics/percolator.py @@ -180,8 +180,7 @@ def get_scannr_internal(metadata_subset: Union[pd.Series, Tuple[str, int]]) -> i :return: hashed unique id """ scan_event_number = metadata_subset - s = f"{scan_event_number}".encode() - return int(hashlib.sha224(s).hexdigest(), 16) # This is a breaking point for Windows + return int(scan_event_number) @staticmethod def get_delta_score(scores_df: pd.DataFrame, scoring_feature: str) -> np.ndarray: