Skip to content

Commit 3bfeb14

Browse files
[pre-commit.ci] pre-commit autoupdate (#308)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0) - [github.com/PyCQA/isort: 5.12.0 → 5.13.2](PyCQA/isort@5.12.0...5.13.2) - [github.com/psf/black: 23.9.1 → 24.3.0](psf/black@23.9.1...24.3.0) - [github.com/mwouts/jupytext: v1.15.2 → v1.16.1](mwouts/jupytext@v1.15.2...v1.16.1) * Update .pre-commit-config.yaml * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Dan Foreman-Mackey <foreman.mackey@gmail.com>
1 parent 294f018 commit 3bfeb14

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.5.0
3+
rev: v4.6.0
44
hooks:
55
- id: trailing-whitespace
66
exclude: src/exoplanet/theano_ops/lib/vendor
@@ -14,15 +14,15 @@ repos:
1414
exclude: docs/tutorials
1515

1616
- repo: https://github.com/PyCQA/isort
17-
rev: "5.12.0"
17+
rev: "5.13.2"
1818
hooks:
1919
- id: isort
2020
args: []
2121
additional_dependencies: [toml]
2222
exclude: docs/tutorials
2323

2424
- repo: https://github.com/psf/black
25-
rev: "23.9.1"
25+
rev: "24.3.0"
2626
hooks:
2727
- id: black
2828

src/exoplanet/orbits/constants.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@
2222

2323
day_per_yr_over_2pi = (
2424
(1.0 * u.au) ** (3 / 2)
25-
/ (
26-
np.sqrt(
27-
c.G.to(u.au**3 / (u.M_sun * u.day**2)) * (1.0 * u.M_sun)
28-
)
29-
)
25+
/ (np.sqrt(c.G.to(u.au**3 / (u.M_sun * u.day**2)) * (1.0 * u.M_sun)))
3026
).value
3127

3228
except TypeError:

src/exoplanet/orbits/dur_to_ecc.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ def duration_to_eccentricity(
3939
s = tt.sin(kwargs["omega"])
4040
umax_inv = tt.switch(tt.lt(s, 0), tt.sqrt(1 - s**2), 1.0)
4141

42-
const = (
43-
period * tt.shape_padright(r_star) * tt.sqrt((1 + ror) ** 2 - b**2)
44-
)
42+
const = period * tt.shape_padright(r_star) * tt.sqrt((1 + ror) ** 2 - b**2)
4543
const /= np.pi * a
4644

4745
u = duration / const

0 commit comments

Comments
 (0)