Skip to content

Commit 838fcad

Browse files
baggepinnenAayushSabharwal
authored andcommitted
format
1 parent aaa8b9e commit 838fcad

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

src/systems/connectors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ end
410410

411411
function generate_connection_equations_and_stream_connections(csets::AbstractVector{
412412
<:ConnectionSet,
413-
})
413+
})
414414
eqs = Equation[]
415415
stream_connections = ConnectionSet[]
416416

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,8 @@ function DiffEqBase.ODEProblem{iip, specialize}(sys::AbstractODESystem, u0map =
892892
check_length = true,
893893
kwargs...) where {iip, specialize}
894894
has_difference = any(isdifferenceeq, equations(sys))
895-
has_difference && error("The operators Difference and DiscreteUpdate are deprecated. Use ShiftIndex instead.")
895+
has_difference &&
896+
error("The operators Difference and DiscreteUpdate are deprecated. Use ShiftIndex instead.")
896897
f, u0, p = process_DEProblem(ODEFunction{iip, specialize}, sys, u0map, parammap;
897898
t = tspan !== nothing ? tspan[1] : tspan,
898899
check_length, kwargs...)
@@ -962,7 +963,8 @@ function DiffEqBase.DAEProblem{iip}(sys::AbstractODESystem, du0map, u0map, tspan
962963
parammap = DiffEqBase.NullParameters();
963964
check_length = true, kwargs...) where {iip}
964965
has_difference = any(isdifferenceeq, equations(sys))
965-
has_difference && error("The operators Difference and DiscreteUpdate are deprecated. Use ShiftIndex instead.")
966+
has_difference &&
967+
error("The operators Difference and DiscreteUpdate are deprecated. Use ShiftIndex instead.")
966968
f, du0, u0, p = process_DEProblem(DAEFunction{iip}, sys, u0map, parammap;
967969
implicit_dae = true, du0map = du0map, check_length,
968970
kwargs...)
@@ -972,7 +974,7 @@ function DiffEqBase.DAEProblem{iip}(sys::AbstractODESystem, du0map, u0map, tspan
972974
kwargs = filter_kwargs(kwargs)
973975

974976
DAEProblem{iip}(f, du0, u0, tspan, p; differential_vars = differential_vars,
975-
kwargs...)
977+
kwargs...)
976978
end
977979

978980
function generate_history(sys::AbstractODESystem, u0; kwargs...)
@@ -989,7 +991,8 @@ function DiffEqBase.DDEProblem{iip}(sys::AbstractODESystem, u0map = [],
989991
check_length = true,
990992
kwargs...) where {iip}
991993
has_difference = any(isdifferenceeq, equations(sys))
992-
has_difference && error("The operators Difference and DiscreteUpdate are deprecated. Use ShiftIndex instead.")
994+
has_difference &&
995+
error("The operators Difference and DiscreteUpdate are deprecated. Use ShiftIndex instead.")
993996
f, u0, p = process_DEProblem(DDEFunction{iip}, sys, u0map, parammap;
994997
t = tspan !== nothing ? tspan[1] : tspan,
995998
symbolic_u0 = true,
@@ -1049,7 +1052,8 @@ function DiffEqBase.SDDEProblem{iip}(sys::AbstractODESystem, u0map = [],
10491052
sparsenoise = nothing,
10501053
kwargs...) where {iip}
10511054
has_difference = any(isdifferenceeq, equations(sys))
1052-
has_difference && error("The operators Difference and DiscreteUpdate are deprecated. Use ShiftIndex instead.")
1055+
has_difference &&
1056+
error("The operators Difference and DiscreteUpdate are deprecated. Use ShiftIndex instead.")
10531057
f, u0, p = process_DEProblem(SDDEFunction{iip}, sys, u0map, parammap;
10541058
t = tspan !== nothing ? tspan[1] : tspan,
10551059
symbolic_u0 = true,

src/systems/jumps/jumpsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ function (ratemap::JumpSysMajParamMapper{
492492
U,
493493
V,
494494
W,
495-
})(params) where {U <: AbstractArray,
495+
})(params) where {U <: AbstractArray,
496496
V <: AbstractArray, W}
497497
updateparams!(ratemap, params)
498498
[convert(W, value(substitute(paramexpr, ratemap.subdict)))

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ Throw error when difference/derivative operation occurs in the R.H.S.
258258
"""
259259
@noinline function throw_invalid_operator(opvar, eq, op::Type)
260260
if op === Difference
261-
error("The Difference operator is deprecated, use ShiftIndex instead")
261+
error("The Difference operator is deprecated, use ShiftIndex instead")
262262
elseif op === Differential
263263
optext = "derivative"
264264
end

0 commit comments

Comments
 (0)