Skip to content

Commit

Permalink
fixup! Set Cython compiler directives globally
Browse files Browse the repository at this point in the history
  • Loading branch information
jlumpe committed Aug 4, 2024
1 parent f8b9983 commit 000b0cf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/gambit/_cython/metric.pyx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""Cython functions for calculating k-mer distance metrics"""

cimport cython
cimport numpy as np

import numpy as np
from cython.parallel import prange, parallel

Expand Down Expand Up @@ -70,8 +68,6 @@ def jaccarddist(COORDS_T[:] coords1, COORDS_T_2[:] coords2):
return c_jaccarddist(coords1, coords2)


@cython.boundscheck(False)
@cython.wraparound(False)
cdef SCORE_T c_jaccarddist(COORDS_T[:] coords1, COORDS_T_2[:] coords2) nogil:
"""Compute the Jaccard distance between two k-mer sets in ordered coordinate format.
Expand Down Expand Up @@ -119,8 +115,6 @@ cdef SCORE_T c_jaccarddist(COORDS_T[:] coords1, COORDS_T_2[:] coords2) nogil:
return <SCORE_T>(2 * u - N - M) / u


@cython.boundscheck(False)
@cython.wraparound(False)
def _jaccarddist_parallel(COORDS_T[:] query, COORDS_T_2[:] ref_coords, BOUNDS_T[:] ref_bounds, SCORE_T[:] out):
"""Calculate Jaccard distances between a query k-mer set and a collection of reference sets.
Expand Down

0 comments on commit 000b0cf

Please sign in to comment.