Skip to content

Commit 3e270fd

Browse files
committed
fomratting update
1 parent 69cc9b0 commit 3e270fd

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

ext/CatalystBifurcationKitExtension/bifurcation_kit_extension.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ function BK.BifurcationProblem(rs::ReactionSystem, u0_bif, ps, bif_par, args...;
2626
nsys = complete(nsys)
2727

2828
# Makes BifurcationProblem (this call goes through the ModelingToolkit-based BifurcationKit extension).
29-
return BK.BifurcationProblem(nsys, u0_bif, ps, bif_par, args...; plot_var, record_from_solution, jac, kwargs...)
29+
return BK.BifurcationProblem(
30+
nsys, u0_bif, ps, bif_par, args...; plot_var, record_from_solution, jac, kwargs...)
3031
end

src/network_analysis.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ end
398398
# Used in the subsequent function.
399399
function subnetworkmapping(linkageclass, allrxs, complextorxsmap, p)
400400
rxinds = sort!(collect(Set(rxidx for rcidx in linkageclass
401-
for rxidx in complextorxsmap[rcidx])))
401+
for rxidx in complextorxsmap[rcidx])))
402402
rxs = allrxs[rxinds]
403403
specset = Set(s for rx in rxs for s in rx.substrates if !isconstant(s))
404404
for rx in rxs

src/reaction.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ function MT.namespace_equation(rx::Reaction, name; kw...)
334334
ns = similar(rx.netstoich)
335335
map!(n -> f(n[1]) => f(n[2]), ns, rx.netstoich)
336336
end
337-
Reaction(rate, subs, prods, substoich, prodstoich, netstoich,
337+
Reaction(rate, subs, prods, substoich, prodstoich, netstoich,
338338
rx.only_use_rate, rx.metadata)
339339
end
340340

@@ -497,7 +497,7 @@ function getmetadata(reaction::Reaction, md_key::Symbol)
497497
end
498498
metadata = getmetadata_dict(reaction)
499499
return metadata[findfirst(isequal(md_key, entry[1])
500-
for entry in getmetadata_dict(reaction))][2]
500+
for entry in getmetadata_dict(reaction))][2]
501501
end
502502

503503
### Implemented Reaction Metadata ###

src/reactionsystem.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,8 +1250,9 @@ function set_default_metadata(rs::ReactionSystem; default_reaction_metadata = []
12501250
ns_syms = [Symbolics.unwrap(sym) for sym in get_variables(ns_expr)]
12511251
ns_ps = Iterators.filter(ModelingToolkit.isparameter, ns_syms)
12521252
ns_sps = Iterators.filter(Catalyst.isspecies, ns_syms)
1253-
ns_vs = Iterators.filter(sym -> !Catalyst.isspecies(sym) &&
1254-
!ModelingToolkit.isparameter(sym), ns_syms)
1253+
ns_vs = Iterators.filter(
1254+
sym -> !Catalyst.isspecies(sym) &&
1255+
!ModelingToolkit.isparameter(sym), ns_syms)
12551256
# Adds parameters, species, and variables to the `ReactionSystem`.
12561257
@set! rs.ps = union(get_ps(rs), ns_ps)
12571258
sps_new = union(get_species(rs), ns_sps)

src/reactionsystem_conversions.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ Keyword args and default values:
471471
function Base.convert(::Type{<:ODESystem}, rs::ReactionSystem; name = nameof(rs),
472472
combinatoric_ratelaws = get_combinatoric_ratelaws(rs),
473473
include_zero_odes = true, remove_conserved = false, checks = false,
474-
default_u0 = Dict(), default_p = Dict(),
474+
default_u0 = Dict(), default_p = Dict(),
475475
defaults = _merge(Dict(default_u0), Dict(default_p)),
476476
kwargs...)
477477
iscomplete(rs) || error(COMPLETENESS_ERROR)
@@ -513,7 +513,7 @@ Keyword args and default values:
513513
function Base.convert(::Type{<:NonlinearSystem}, rs::ReactionSystem; name = nameof(rs),
514514
combinatoric_ratelaws = get_combinatoric_ratelaws(rs),
515515
include_zero_odes = true, remove_conserved = false, checks = false,
516-
default_u0 = Dict(), default_p = Dict(),
516+
default_u0 = Dict(), default_p = Dict(),
517517
defaults = _merge(Dict(default_u0), Dict(default_p)),
518518
all_differentials_permitted = false, kwargs...)
519519
# Error checks.
@@ -595,7 +595,7 @@ Notes:
595595
function Base.convert(::Type{<:SDESystem}, rs::ReactionSystem;
596596
name = nameof(rs), combinatoric_ratelaws = get_combinatoric_ratelaws(rs),
597597
include_zero_odes = true, checks = false, remove_conserved = false,
598-
default_u0 = Dict(), default_p = Dict(),
598+
default_u0 = Dict(), default_p = Dict(),
599599
defaults = _merge(Dict(default_u0), Dict(default_p)),
600600
kwargs...)
601601
iscomplete(rs) || error(COMPLETENESS_ERROR)
@@ -646,7 +646,7 @@ Notes:
646646
function Base.convert(::Type{<:JumpSystem}, rs::ReactionSystem; name = nameof(rs),
647647
combinatoric_ratelaws = get_combinatoric_ratelaws(rs),
648648
remove_conserved = nothing, checks = false,
649-
default_u0 = Dict(), default_p = Dict(),
649+
default_u0 = Dict(), default_p = Dict(),
650650
defaults = _merge(Dict(default_u0), Dict(default_p)),
651651
kwargs...)
652652
iscomplete(rs) || error(COMPLETENESS_ERROR)

0 commit comments

Comments
 (0)