Skip to content

Commit 559cdcd

Browse files
author
Sathvik Bhagavan
committed
docs: add push_preview and fix formatting friction tutorial
1 parent 5b2e08c commit 559cdcd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/make.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ makedocs(;
2929

3030
deploydocs(;
3131
repo = "github.com/SciML/ModelingToolkitNeuralNets.jl",
32-
devbranch = "main"
32+
devbranch = "main",
33+
push_preview = true
3334
)

docs/src/friction.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ res_prob = remake(prob, p = res_p)
152152
res_sol = solve(res_prob, Rodas4(), saveat = sol_ref.t)
153153
@test first.(sol_ref.u)≈first.(res_sol.u) rtol=1e-3 #hide
154154
@test friction.(first.(sol_ref.u))≈(Fu .- first.(res_sol(res_sol.t, Val{1}).u)) rtol=1e-1 #hide
155+
nothing #hide
155156
```
156157

157158
Also, it would be interesting to check the simulation before the training to get an idea of the starting point of the network.

0 commit comments

Comments
 (0)