Skip to content
Snippets Groups Projects
Unverified Commit a96b7f73 authored by Xavier Robin's avatar Xavier Robin
Browse files

fix: IndexError when the data contains NaN values

parent 0e5e3388
Branches
No related tags found
No related merge requests found
...@@ -854,7 +854,7 @@ class LigandScorer: ...@@ -854,7 +854,7 @@ class LigandScorer:
if np.any(alternative_matches): if np.any(alternative_matches):
# Get the scores of these matches # Get the scores of these matches
LogVerbose("Found match with lower coverage but better score") LogVerbose("Found match with lower coverage but better score")
min_mat1 = np.min(mat1[alternative_matches]) min_mat1 = np.nanmin(mat1[alternative_matches])
max_i_trg, max_i_mdl = _get_best_match(min_mat1, min_coverage - coverage_delta) max_i_trg, max_i_mdl = _get_best_match(min_mat1, min_coverage - coverage_delta)
# Disable row and column # Disable row and column
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment