We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4de52d8 commit 6a016acCopy full SHA for 6a016ac
1 file changed
openptv_python/find_candidate.py
@@ -1,6 +1,8 @@
1
import math
2
from typing import List
3
4
+from numba import float64, njit
5
+
6
from .calibration import Calibration
7
from .constants import MAXCAND
8
from .epi import Candidate, Coord2d
@@ -146,8 +148,8 @@ def find_candidate(
146
148
# """ Return the ratio of the smaller to the larger of the two numbers."""
147
149
# return a / b if a < b else b / a
150
-
-def quality_ratio(a, b):
151
+@njit(float64(float64, float64))
152
+def quality_ratio(a: float, b: float) -> float:
153
"""Return the ratio of the smaller to the larger of the two numbers."""
154
if a == 0 and b == 0:
155
return 0
0 commit comments