[BUG] Test fail with numpy2 for stomp_squared_matrix_profile #2236
Labels
bug
Something isn't working
similarity search
Similarity search package
testing
Testing related issue or pull request
Describe the bug
in the module similarity_searc/matrix_profiles the test function
test_stomp_squared_matrix_profile
fails with numpy 2.0 if this parameter isK_VALUES = [1,3]
this is caused by the np.argsort method, which by default uses the unstable quicksort which means occasional differences in ties with the two versions.
The case K_VALUES = [1] is fixed by making this call stable, but not at all sure about case with 3. See #2216 for more details
Steps/Code to reproduce the bug
No response
Expected results
set K_VALUES = [1,3] and run with numpy <2.0 (passes) and numpy>=2.0 (fails)
Actual results
Versions
No response
The text was updated successfully, but these errors were encountered: