Skip to content

Commit e8603cd

Browse files
committed
Skipped njitted functions from coverage count
1 parent fa915da commit e8603cd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/tdamapper/utils/_metrics.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22
from numba import njit
33

44

5-
@njit(fastmath=True)
5+
@njit(fastmath=True) # pragma: no cover
66
def euclidean(x, y):
77
return np.linalg.norm(x - y)
88

99

10-
@njit(fastmath=True)
10+
@njit(fastmath=True) # pragma: no cover
1111
def manhattan(x, y):
1212
return np.linalg.norm(x - y, ord=1)
1313

1414

15-
@njit(fastmath=True)
15+
@njit(fastmath=True) # pragma: no cover
1616
def chebyshev(x, y):
1717
return np.linalg.norm(x - y, ord=np.inf)
1818

1919

20-
@njit(fastmath=True)
20+
@njit(fastmath=True) # pragma: no cover
2121
def minkowski(p, x, y):
2222
return np.linalg.norm(x - y, ord=p)
2323

2424

25-
@njit(fastmath=True)
25+
@njit(fastmath=True) # pragma: no cover
2626
def cosine(x, y):
2727
xy = np.dot(x, y)
2828
xx = np.linalg.norm(x)

0 commit comments

Comments
 (0)