Skip to content

Commit ace8ea2

Browse files
author
Sathvik Bhagavan
committed
chore: format
1 parent 551bbba commit ace8ea2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://SciML.github.io/UDEComponents.jl/dev/)
55
[![Build Status](https://github.com/SciML/UDEComponents.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/SciML/UDEComponents.jl/actions/workflows/CI.yml?query=branch%3Amain)
66
[![Coverage](https://codecov.io/gh/SciML/UDEComponents.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/SciML/UDEComponents.jl)
7-
[![ColPrac: Contributor's Guide on Collaborative Practices for Community Packages](https://img.shields.io/badge/ColPrac-Contributor's%20Guide-blueviolet)](https://github.com/SciML/ColPrac)
7+
[![ColPrac: Contributor's Guide on Collaborative Practices for Community Packages](https://img.shields.io/badge/ColPrac-Contributor%27s%20Guide-blueviolet)](https://github.com/SciML/ColPrac)
88
[![Aqua](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
99

1010
## Build UDEs with ModelingToolkit

src/UDEComponents.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Create an `ODESystem` with a neural network inside.
2222
function NeuralNetworkBlock(n_input = 1,
2323
n_output = 1;
2424
chain = multi_layer_feed_forward(n_input, n_output),
25-
rng = Xoshiro(0), eltype=Float64)
25+
rng = Xoshiro(0), eltype = Float64)
2626
lux_p = Lux.initialparameters(rng, chain)
2727
ca = ComponentArray{eltype}(lux_p)
2828

test/lotka_volterra.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ using StableRNGs
1414

1515
function lotka_ude()
1616
@variables t x(t)=3.1 y(t)=1.5
17-
@parameters α=1.3 [tunable=false] δ=1.8 [tunable=false]
17+
@parameters α=1.3 [tunable = false] δ=1.8 [tunable = false]
1818
Dt = ModelingToolkit.D_nounits
1919
@named nn_in = RealInput(nin = 2)
2020
@named nn_out = RealOutput(nout = 2)
@@ -115,7 +115,7 @@ res = solve(op, Adam(), maxiters = 5000)#, callback = plot_cb)
115115

116116
res_p = SciMLStructures.replace(Tunable(), prob.p, res)
117117
res_prob = remake(prob, p = res_p)
118-
res_sol = solve(res_prob, Rodas4(), saveat=sol_ref.t)
118+
res_sol = solve(res_prob, Rodas4(), saveat = sol_ref.t)
119119

120120
# using Plots
121121
# plot(sol_ref, idxs = [model_true.x, model_true.y])

0 commit comments

Comments
 (0)