Skip to content

Commit

Permalink
Merge pull request #469 from AayushSabharwal/as/fix-indexing
Browse files Browse the repository at this point in the history
fix: remove ambiguous methods
  • Loading branch information
isaacsas authored Jan 9, 2025
2 parents 13637b8 + 78eb54d commit 41665a2
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/problem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,6 @@ function DiffEqBase.remake(jprob::JumpProblem; kwargs...)
jprob.kwargs)
end

# when setindex! is used.
function Base.setindex!(prob::JumpProblem, args...; kwargs...)
SciMLBase.___internal_setindex!(prob.prob, args...; kwargs...)
end

# for updating parameters in JumpProblems to update MassActionJumps
function SII.finalize_parameters_hook!(prob::JumpProblem, p)
if using_params(prob.massaction_jump)
Expand All @@ -163,11 +158,6 @@ function SII.finalize_parameters_hook!(prob::JumpProblem, p)
nothing
end

# when getindex is used.
function Base.getindex(prob::JumpProblem, args...; kwargs...)
Base.getindex(prob.prob, args...; kwargs...)
end

DiffEqBase.isinplace(::JumpProblem{iip}) where {iip} = iip
JumpProblem(prob::JumpProblem) = prob

Expand Down

0 comments on commit 41665a2

Please sign in to comment.