Skip to content

Commit 85086e3

Browse files
committed
reapply formatter
1 parent 9504fb8 commit 85086e3

File tree

7 files changed

+48
-47
lines changed

7 files changed

+48
-47
lines changed

.JuliaFormatter.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
style = "sciml"
2-
format_markdown = true
2+
format_markdown = true
3+
format_docstrings = true

docs/make.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ cp("./docs/Project.toml", "./docs/src/assets/Project.toml", force = true)
66
include("pages.jl")
77

88
makedocs(sitename = "ParameterizedFunctions.jl",
9-
authors = "Chris Rackauckas",
10-
modules = [ParameterizedFunctions],
11-
clean = true, doctest = false, linkcheck = true,
12-
format = Documenter.HTML(assets = ["assets/favicon.ico"],
13-
canonical = "https://docs.sciml.ai/ParameterizedFunctions/stable/"),
14-
pages = pages)
9+
authors = "Chris Rackauckas",
10+
modules = [ParameterizedFunctions],
11+
clean = true, doctest = false, linkcheck = true,
12+
format = Documenter.HTML(assets = ["assets/favicon.ico"],
13+
canonical = "https://docs.sciml.ai/ParameterizedFunctions/stable/"),
14+
pages = pages)
1515

1616
deploydocs(repo = "github.com/SciML/ParameterizedFunctions.jl.git";
17-
push_preview = true)
17+
push_preview = true)

docs/pages.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
pages = [
44
"Home" => "index.md",
5-
"ode_def.md",
5+
"ode_def.md"
66
]

docs/src/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ Latexify directly works on the generated expression. Example:
4949
using ParameterizedFunctions, Latexify
5050

5151
lotka_volterra = @ode_def begin
52-
dx = a*x -b*x*y
53-
dy = -c*y + d*x*y
52+
dx = a * x - b * x * y
53+
dy = -c * y + d * x * y
5454
end a b c d
5555

5656
latexify(lotka_volterra.sys)
5757
```
5858

5959
Generates:
6060

61-
```julia
61+
```
6262
L"\begin{align}
6363
\frac{\mathrm{d} x\left( t \right)}{\mathrm{d}t} =& a x\left( t \right) - b x\left( t \right) y\left( t \right) \\
6464
\frac{\mathrm{d} y\left( t \right)}{\mathrm{d}t} =& - c y\left( t \right) + d x\left( t \right) y\left( t \right)

src/macros.jl

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ symbolic tools.
3434
"""
3535
macro ode_def(name, ex, params...)
3636
opts = Dict{Symbol, Bool}(:build_tgrad => true,
37-
:build_jac => true,
38-
:build_expjac => false,
39-
:build_invjac => false,
40-
:build_invW => false,
41-
:build_hes => false,
42-
:build_invhes => false,
43-
:build_dpfuncs => true)
37+
:build_jac => true,
38+
:build_expjac => false,
39+
:build_invjac => false,
40+
:build_invW => false,
41+
:build_hes => false,
42+
:build_invhes => false,
43+
:build_dpfuncs => true)
4444
name isa Expr ? ode_def_opts(gensym(), opts, __module__, name, ex, params...) :
4545
ode_def_opts(name, opts, __module__, ex, params...)
4646
end
@@ -57,13 +57,13 @@ See the `@ode_def` docstring for more details.
5757
"""
5858
macro ode_def_bare(name, ex, params...)
5959
opts = Dict{Symbol, Bool}(:build_tgrad => false,
60-
:build_jac => false,
61-
:build_expjac => false,
62-
:build_invjac => false,
63-
:build_invW => false,
64-
:build_hes => false,
65-
:build_invhes => false,
66-
:build_dpfuncs => false)
60+
:build_jac => false,
61+
:build_expjac => false,
62+
:build_invjac => false,
63+
:build_invW => false,
64+
:build_hes => false,
65+
:build_invhes => false,
66+
:build_dpfuncs => false)
6767
name isa Expr ? ode_def_opts(gensym(), opts, __module__, name, ex, params...) :
6868
ode_def_opts(name, opts, __module__, ex, params...)
6969
end
@@ -80,13 +80,13 @@ See the `@ode_def` docstring for more details.
8080
"""
8181
macro ode_def_all(name, ex, params...)
8282
opts = Dict{Symbol, Bool}(:build_tgrad => true,
83-
:build_jac => true,
84-
:build_expjac => false,
85-
:build_invjac => false,
86-
:build_invW => true,
87-
:build_hes => false,
88-
:build_invhes => false,
89-
:build_dpfuncs => true)
83+
:build_jac => true,
84+
:build_expjac => false,
85+
:build_invjac => false,
86+
:build_invW => true,
87+
:build_hes => false,
88+
:build_invhes => false,
89+
:build_dpfuncs => true)
9090
name isa Expr ? ode_def_opts(gensym(), opts, __module__, name, ex, params...) :
9191
ode_def_opts(name, opts, __module__, ex, params...)
9292
end

src/ode_def_opts.jl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ findreplace(ex, dict) = ex
77
"""
88
```julia
99
ode_def_opts(name::Symbol, opts::Dict{Symbol, Bool}, curmod, ex::Expr, params...;
10-
depvar = :t)
10+
depvar = :t)
1111
```
1212
1313
The core internal. Users should only interact with this through the `@ode_def_*` macros.
@@ -30,18 +30,18 @@ Example:
3030
3131
```julia
3232
opts = Dict{Symbol, Bool}(:build_tgrad => true,
33-
:build_jac => true,
34-
:build_expjac => false,
35-
:build_invjac => true,
36-
:build_invW => true,
37-
:build_invW_t => true,
38-
:build_hes => false,
39-
:build_invhes => false,
40-
:build_dpfuncs => true)
33+
:build_jac => true,
34+
:build_expjac => false,
35+
:build_invjac => true,
36+
:build_invW => true,
37+
:build_invW_t => true,
38+
:build_hes => false,
39+
:build_invhes => false,
40+
:build_dpfuncs => true)
4141
```
4242
"""
4343
function ode_def_opts(name::Symbol, opts::Dict{Symbol, Bool}, curmod, ex::Expr, params...;
44-
depvar = :t)
44+
depvar = :t)
4545
# depvar is the dependent variable. Defaults to t
4646
# M is the mass matrix in RosW, must be a constant!
4747

@@ -191,8 +191,8 @@ function ode_def_opts(name::Symbol, opts::Dict{Symbol, Bool}, curmod, ex::Expr,
191191
$full_wex
192192

193193
$name($fname, ParameterizedFunctions.LinearAlgebra.I, nothing, $tname, $jname,
194-
nothing, nothing,
195-
nothing, nothing, $Wname, $W_tname, nothing, $syms, $(Meta.quot(depvar)),
196-
nothing, $sys)
194+
nothing, nothing,
195+
nothing, nothing, $Wname, $W_tname, nothing, $syms, $(Meta.quot(depvar)),
196+
nothing, $sys)
197197
end |> esc
198198
end

test/qa.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ using ParameterizedFunctions, Aqua
88
Aqua.test_project_extras(ParameterizedFunctions)
99
Aqua.test_stale_deps(ParameterizedFunctions)
1010
Aqua.test_unbound_args(ParameterizedFunctions)
11-
Aqua.test_undefined_exports(ParameterizedFunctions, broken=true)
11+
Aqua.test_undefined_exports(ParameterizedFunctions, broken = true)
1212
end

0 commit comments

Comments
 (0)