Skip to content

Commit 222cf63

Browse files
committed
run formatter
1 parent d90876a commit 222cf63

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/interpolation_caches.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,8 +1220,8 @@ function BSplineApprox(
12201220
end
12211221
for k in 2:(n - 1)
12221222
q[ax_u...,
1223-
k] = u[ax_u..., k] - sc[k, 1] * u[ax_u..., 1] -
1224-
sc[k, h] * u[ax_u..., end]
1223+
k] = u[ax_u..., k] - sc[k, 1] * u[ax_u..., 1] -
1224+
sc[k, h] * u[ax_u..., end]
12251225
end
12261226
Q = Array{T, N}(undef, size(u)[1:(end - 1)]..., h - 2)
12271227
for i in 2:(h - 1)

src/interpolation_utils.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ function cumulative_integral(A::AbstractInterpolation{<:Number}, cache_parameter
191191
Base.require_one_based_indexing(A.u)
192192
idxs = cache_parameters ? (1:(length(A.t) - 1)) : (1:0)
193193
return cumsum(_integral(A, idx, t1, t2)
194-
for (idx, t1, t2) in zip(idxs, @view(A.t[begin:(end - 1)]), @view(A.t[(begin + 1):end])))
194+
for (idx, t1, t2) in
195+
zip(idxs, @view(A.t[begin:(end - 1)]), @view(A.t[(begin + 1):end])))
195196
end
196197

197198
function get_parameters(A::LinearInterpolation, idx)

test/interpolation_tests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,7 @@ end
10271027
ut1 = Float32[0.1, 0.2, 0.3, 0.4, 0.5]
10281028
ut2 = Float64[0.1, 0.2, 0.3, 0.4, 0.5]
10291029
for u in (ut1, ut2), t in (ut1, ut2)
1030+
10301031
interp = @inferred(LinearInterpolation(ut1, ut2))
10311032
for xs in (u, t)
10321033
ys = @inferred(interp(xs))
@@ -1109,6 +1110,7 @@ f_cubic_spline = c -> square(CubicSpline, c)
11091110
iszero_allocations(u, t) = iszero(@allocated(DataInterpolations.munge_data(u, t)))
11101111

11111112
for T in (String, Union{String, Missing}), dims in 1:3
1113+
11121114
_u0 = convert(Array{T}, reshape(u0, ntuple(i -> i == dims ? 3 : 1, dims)))
11131115

11141116
u, t = @inferred(DataInterpolations.munge_data(_u0, t0))

0 commit comments

Comments
 (0)