Skip to content

Commit ae2a5ad

Browse files
committed
Remove unused @njit decorators
1 parent 82c1459 commit ae2a5ad

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

improver/calibration/quantile_mapping.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from improver import PostProcessingPlugin
1313

1414

15-
# @njit
1615
def _build_empirical_cdf(data: np.ndarray) -> tuple[np.ndarray, np.ndarray]:
1716
"""Build empirical cumulative distribution function (CDF).
1817
@@ -29,7 +28,6 @@ def _build_empirical_cdf(data: np.ndarray) -> tuple[np.ndarray, np.ndarray]:
2928
return sorted_values, quantiles
3029

3130

32-
# @njit
3331
def _inverted_cdf(data: np.ndarray, quantiles: np.ndarray) -> np.ndarray:
3432
"""Calculate values using discrete quantile lookup (rounding down to nearest data
3533
point).
@@ -54,7 +52,6 @@ def _inverted_cdf(data: np.ndarray, quantiles: np.ndarray) -> np.ndarray:
5452
return sorted_values[floored_indices]
5553

5654

57-
# @njit
5855
def _interpolated_inverted_cdf(data: np.ndarray, quantiles: np.ndarray) -> np.ndarray:
5956
"""Calculate values at provided quantiles using linear interpolation.
6057
@@ -73,7 +70,6 @@ def _interpolated_inverted_cdf(data: np.ndarray, quantiles: np.ndarray) -> np.nd
7370
return np.interp(quantiles, empirical_quantiles, sorted_values)
7471

7572

76-
# @njit
7773
def quantile_mapping(
7874
reference_data: np.ndarray,
7975
forecast_data: np.ndarray,

0 commit comments

Comments
 (0)