Skip to content

Commit e00bdb2

Browse files
Merge pull request #361 from ArnoStrouwen/format
reapply formatter
2 parents 9f3a930 + 9c00504 commit e00bdb2

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
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

src/named_array_partition.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
NamedArrayPartition(; kwargs...)
33
NamedArrayPartition(x::NamedTuple)
44
5-
Similar to an `ArrayPartition` but the individual arrays can be accessed via the
6-
constructor-specified names. However, unlike `ArrayPartition`, each individual array
7-
must have the same element type.
5+
Similar to an `ArrayPartition` but the individual arrays can be accessed via the
6+
constructor-specified names. However, unlike `ArrayPartition`, each individual array
7+
must have the same element type.
88
"""
99
struct NamedArrayPartition{T, A <: ArrayPartition{T}, NT <: NamedTuple} <: AbstractVector{T}
1010
array_partition::A

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
```julia
3-
recursivecopy(a::Union{AbstractArray{T, N}, AbstractVectorOfArray{T,N}})
3+
recursivecopy(a::Union{AbstractArray{T, N}, AbstractVectorOfArray{T, N}})
44
```
55
66
A recursive `copy` function. Acts like a `deepcopy` on arrays of arrays, but

src/vector_of_array.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ returns a vector of the series for each component, that is, `A[i,:]` for each `i
2929
A plot recipe is provided, which plots the `A[i,:]` series.
3030
3131
There is also support for `VectorOfArray` with constructed from multi-dimensional arrays
32+
3233
```julia
3334
VectorOfArray(u::AbstractArray{AT}) where {T, N, AT <: AbstractArray{T, N}}
3435
```
35-
where `IndexStyle(typeof(u)) isa IndexLinear`.
36+
37+
where `IndexStyle(typeof(u)) isa IndexLinear`.
3638
"""
3739
mutable struct VectorOfArray{T, N, A} <: AbstractVectorOfArray{T, N, A}
3840
u::A # A <: AbstractVector{<: AbstractArray{T, N - 1}}

test/downstream/symbol_indexing.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ include("../testutils.jl")
77
@parameters τ
88
@variables RHS(t)
99
@mtkbuild fol_separate = ODESystem([RHS ~ (1 - x) / τ,
10-
D(x) ~ RHS],t)
10+
D(x) ~ RHS], t)
1111

1212
prob = ODEProblem(fol_separate, [x => 0.0], (0.0, 10.0), [τ => 3.0])
1313
sol = solve(prob, Tsit5())
@@ -41,7 +41,7 @@ test_tables_interface(sol_new, [:timestamp, Symbol("x(t)")], hcat(sol_new[t], so
4141
@variables y(t)
4242
@parameters α β γ δ
4343
@mtkbuild lv = ODESystem([D(x) ~ α * x - β * x * y,
44-
D(y) ~ δ * x * y - γ * x * y],t)
44+
D(y) ~ δ * x * y - γ * x * y], t)
4545

4646
prob = ODEProblem(lv, [x => 1.0, y => 1.0], (0.0, 10.0),
4747
=> 1.5, β => 1.0, γ => 3.0, δ => 1.0])

0 commit comments

Comments
 (0)