@@ -412,7 +412,7 @@ ctypedef fused algos_t:
412
412
uint8_t
413
413
414
414
415
- def _validate_limit (nobs: int , limit = None ) -> int:
415
+ def validate_limit (nobs: int , limit = None ) -> int:
416
416
"""
417
417
Check that the `limit` argument is a positive integer.
418
418
@@ -452,7 +452,7 @@ def pad(ndarray[algos_t] old, ndarray[algos_t] new, limit=None):
452
452
indexer = np.empty(nright, dtype = np.int64)
453
453
indexer[:] = - 1
454
454
455
- lim = _validate_limit (nright, limit)
455
+ lim = validate_limit (nright, limit)
456
456
457
457
if nleft == 0 or nright == 0 or new[nright - 1 ] < old[0 ]:
458
458
return indexer
@@ -509,7 +509,7 @@ def pad_inplace(algos_t[:] values, const uint8_t[:] mask, limit=None):
509
509
if N == 0 :
510
510
return
511
511
512
- lim = _validate_limit (N, limit)
512
+ lim = validate_limit (N, limit)
513
513
514
514
val = values[0 ]
515
515
for i in range (N):
@@ -537,7 +537,7 @@ def pad_2d_inplace(algos_t[:, :] values, const uint8_t[:, :] mask, limit=None):
537
537
if N == 0 :
538
538
return
539
539
540
- lim = _validate_limit (N, limit)
540
+ lim = validate_limit (N, limit)
541
541
542
542
for j in range (K):
543
543
fill_count = 0
@@ -593,7 +593,7 @@ def backfill(ndarray[algos_t] old, ndarray[algos_t] new, limit=None) -> ndarray:
593
593
indexer = np.empty(nright, dtype = np.int64)
594
594
indexer[:] = -1
595
595
596
- lim = _validate_limit (nright, limit)
596
+ lim = validate_limit (nright, limit)
597
597
598
598
if nleft == 0 or nright == 0 or new[0] > old[nleft - 1]:
599
599
return indexer
@@ -651,7 +651,7 @@ def backfill_inplace(algos_t[:] values, const uint8_t[:] mask, limit=None):
651
651
if N == 0 :
652
652
return
653
653
654
- lim = _validate_limit (N, limit)
654
+ lim = validate_limit (N, limit)
655
655
656
656
val = values[N - 1 ]
657
657
for i in range (N - 1 , - 1 , - 1 ):
@@ -681,7 +681,7 @@ def backfill_2d_inplace(algos_t[:, :] values,
681
681
if N == 0 :
682
682
return
683
683
684
- lim = _validate_limit (N, limit)
684
+ lim = validate_limit (N, limit)
685
685
686
686
for j in range (K):
687
687
fill_count = 0
0 commit comments