Skip to content

Commit

Permalink
Dirty fix for internal pipeline -> Don't hash and put scan event numb…
Browse files Browse the repository at this point in the history
…er as ScanNr
  • Loading branch information
arminsl committed Jan 5, 2024
1 parent 9af57bb commit 9f6cdaf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spectrum_fundamentals/metrics/percolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9f6cdaf

Please sign in to comment.