You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The extract_top_k_and_threshold_from_distance_profiles_one_series function in similarity_search/_commons.py encounters errors primarily due to the @njit(cache=True) decorator from the Numba module.
After removing the Numba accelerator, the function operates correctly only when the distance profile array has n_candidates=1. Setting n_candidates to a value greater than 1 results in a ValueError.
Hi, thanks for raising the issue, could you by any chance try to use the function I defined in #2473 (defined in /subsequence_search/_commons.py) to see if it fix your issue ? I extensively tested this one so it should be fine
Describe the bug
The
extract_top_k_and_threshold_from_distance_profiles_one_series
function insimilarity_search/_commons.py
encounters errors primarily due to the@njit(cache=True)
decorator from the Numba module.After removing the Numba accelerator, the function operates correctly only when the distance profile array has
n_candidates=1
. Settingn_candidates
to a value greater than 1 results in aValueError
.Steps/Code to reproduce the bug
To reproduce
Expected results
No error should be thrown
Actual results
Error when @njit(cache=True) is used
Error on removal for n_candidates >=1
Versions
No response
The text was updated successfully, but these errors were encountered: