Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 31, 2024
1 parent ab9ff71 commit 66f4d2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions strax/sort_enforcement.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
"Please use mergesort for deterministic sorting behavior."
)


# Define custom exception for sorting errors
class SortingError(Exception):
pass


@numba.njit(nogil=True, cache=True)
def stable_sort(arr, kind="mergesort"):
"""Numba-optimized stable sort function using mergesort.
Expand Down

0 comments on commit 66f4d2b

Please sign in to comment.