Skip to content

Commit 20aa56b

Browse files
committed
fix: linting errors
1 parent 8cc487e commit 20aa56b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pycaputo/generating_functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ def newton_gregory_weights(alpha: float, k: int, n: int) -> Array:
338338

339339
omega = np.empty(n + 1)
340340
omega[0] = 1.0
341-
for k in range(1, n + 1):
342-
omega[k] = (1 + (alpha - 1) / k) * omega[k - 1]
341+
for i in range(1, n + 1):
342+
omega[i] = (1 + (alpha - 1) / i) * omega[i - 1]
343343

344344
omega[1:] = (1 - alpha / 2) * omega[1:] + alpha / 2 * omega[:-1]
345345
omega[0] = 1 - alpha / 2.0

pycaputo/quadrature/riemann_liouville.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def name(self) -> str:
476476

477477
@property
478478
def order(self) -> float:
479-
# FIXME: this is not the corect order!
479+
# FIXME: this is not the correct order!
480480
return min(1.0, -self.d.order)
481481

482482

@@ -493,8 +493,8 @@ def _quad_rl_conv(
493493

494494
from pycaputo.generating_functions import (
495495
lmm_starting_weights,
496-
lubich_starting_powers,
497496
lubich_bdf_weights,
497+
lubich_starting_powers,
498498
)
499499

500500
fx = f(p.x) if callable(f) else f

0 commit comments

Comments
 (0)