Skip to content

Commit

Permalink
fix: linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl committed Dec 12, 2023
1 parent ca388bd commit fdcd684
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pycaputo/generating_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ def newton_gregory_weights(alpha: float, k: int, n: int) -> Array:

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

omega[1:] = (1 - alpha / 2) * omega[1:] + alpha / 2 * omega[:-1]
omega[0] = 1 - alpha / 2.0
Expand Down
4 changes: 2 additions & 2 deletions pycaputo/quadrature/riemann_liouville.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def name(self) -> str:

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


Expand All @@ -493,8 +493,8 @@ def _quad_rl_conv(

from pycaputo.generating_functions import (
lmm_starting_weights,
lubich_starting_powers,
lubich_bdf_weights,
lubich_starting_powers,
)

fx = f(p.x) if callable(f) else f
Expand Down

0 comments on commit fdcd684

Please sign in to comment.