Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#69)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/Lucas-C/pre-commit-hooks: v1.1.10 → v1.1.11](Lucas-C/pre-commit-hooks@v1.1.10...v1.1.11)
- [github.com/psf/black: 21.12b0 → 22.1.0](psf/black@21.12b0...22.1.0)
- [github.com/asottile/blacken-docs: v1.12.0 → v1.12.1](adamchainz/blacken-docs@v1.12.0...v1.12.1)

* [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>
  • Loading branch information
pre-commit-ci[bot] committed Feb 1, 2022
1 parent f52cea6 commit 9abfef4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ repos:
- id: python-no-log-warn
- id: python-use-type-annotations
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.10
rev: v1.1.11
hooks:
- id: remove-crlf
- repo: https://github.com/psf/black
rev: 21.12b0
rev: 22.1.0
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.0
rev: v1.12.1
hooks:
- id: blacken-docs
additional_dependencies: [ black==20.8b1 ]
Expand Down
6 changes: 3 additions & 3 deletions dev/Gelmi2014.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ def example_3():
k=lambda x, s: x * s,
lower_bound=lambda x: 0,
upper_bound=lambda x: 1,
f=lambda y: y ** 2,
f=lambda y: y**2,
)
solver.solve()
exact = 1 + solver.x + solver.x ** 2
exact = 1 + solver.x + solver.x**2

return solver, exact

Expand All @@ -109,7 +109,7 @@ def example_4():
x=np.linspace(0, 1, 100),
y_0=1,
c=lambda x, y: (x * (1 + np.sqrt(x)) * np.exp(-np.sqrt(x)))
- (((x ** 2) + x + 1) * np.exp(-x)),
- (((x**2) + x + 1) * np.exp(-x)),
d=lambda x: 1,
k=lambda x, s: x * s,
lower_bound=lambda x: x,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_complex_quad.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def x():
params=[
lambda x: 1,
lambda x: 2.3 * x,
lambda x: 0.1 * x ** 2,
lambda x: 0.1 * x**2,
lambda x: np.exp(x),
lambda x: np.log(x),
lambda x: 1 / (x + 0.1),
Expand Down
6 changes: 3 additions & 3 deletions tests/test_solver_against_analytic_solutions.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@
k=lambda x, s: x * s,
lower_bound=lambda x: 0,
upper_bound=lambda x: 1,
f=lambda y: y ** 2,
f=lambda y: y**2,
global_error_tolerance=1e-6,
),
lambda x: 1 + x + x ** 2,
lambda x: 1 + x + x**2,
),
( # 4
IDESolver(
x=np.linspace(0, 1, 100),
y_0=1,
c=lambda x, y: (x * (1 + np.sqrt(x)) * np.exp(-np.sqrt(x)))
- (((x ** 2) + x + 1) * np.exp(-x)),
- (((x**2) + x + 1) * np.exp(-x)),
d=lambda x: 1,
k=lambda x, s: x * s,
lower_bound=lambda x: x,
Expand Down

0 comments on commit 9abfef4

Please sign in to comment.