Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 13, 2025
1 parent 3188fb7 commit 8e55662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jaxoplanet/experimental/starry/multiprecision/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def P(l, m, b, r):
mu = l - m
nu = l + m

if (abs(1 - r) < b) and (b < 1 + r):
if (abs(1 - r) < b < 1 + r):
kappa = kappas(b, r)[0]
phi = kappa - mp.pi / 2
else:
Expand Down Expand Up @@ -141,7 +141,7 @@ def p_numerical(l_max, b, r):

def q_numerical(l_max, b, r):

if (abs(1 - r) < b) and (b < 1 + r):
if (abs(1 - r) < b < 1 + r):
lam = 0.5 * mp.pi - kappas(b, r)[1]
else:
lam = mp.pi / 2
Expand Down

0 comments on commit 8e55662

Please sign in to comment.