You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to solve a JumpProblem with a DiscreteCallback using the SSAStepper the code errors. This is a recent bug (it did not occur yesterday when I tested SBMLImporter on GitHub CI), and it manifests both locally and on GitHub CI. The problem might arise in DiffEqBase.
Expected behavior
The JumpProblem should be properly solved without errors.
Minimal Reproducible Example 👇
using Catalyst, JumpProcesses, DiffEqCallbacks
rs =@reaction_networkbegin
c1, S + E --> SE
c2, SE --> S + E
c3, SE --> P + E
end
p = (:c1=>0.00166, :c2=>0.0001, :c3=>0.1)
tspan = (0., 100.)
u0 = [:S=>301, :E=>100, :SE=>0, :P=>0]
# solve JumpProblem
dprob =DiscreteProblem(rs, u0, tspan, p)
jprob =JumpProblem(rs, dprob, Direct())
condition(u, t, integrator) = t ==5affect!(integrator) = integrator.u[1] +=10
cb =DiscreteCallback(condition, affect!)
jsol =solve(jprob, SSAStepper(), tstops=[5.0], callback=cb)
Error & Stacktrace ⚠️
ERROR: type DiscreteFunction has no field mass_matrix
Stacktrace:
[1] getproperty
@ ./Base.jl:37 [inlined]
[2] apply_discrete_callback!
@ ~/.julia/packages/DiffEqBase/UoaYd/src/callbacks.jl:606 [inlined]
[3] step!(integrator::JumpProcesses.SSAIntegrator{…})
@WARNING: both Symbolics and ModelingToolkit export"infimum"; uses of it inmodule Catalyst must be qualified
WARNING: both Symbolics and ModelingToolkit export"supremum"; uses of it inmodule Catalyst must be qualified
JumpProcesses ~/.julia/packages/JumpProcesses/HPjOl/src/SSA_stepper.jl:281
[4] solve!(integrator::JumpProcesses.SSAIntegrator{…})
@ JumpProcesses ~/.julia/packages/JumpProcesses/HPjOl/src/SSA_stepper.jl:121
[5] #__solve#221
@ JumpProcesses ~/.julia/packages/JumpProcesses/HPjOl/src/SSA_stepper.jl:114 [inlined]
[6] __solve
@ JumpProcesses ~/.julia/packages/JumpProcesses/HPjOl/src/SSA_stepper.jl:110 [inlined]
[7] #solve#47
@ DiffEqBase ~/.julia/packages/DiffEqBase/UoaYd/src/solve.jl:1087 [inlined]
[8] top-level scope
@ ~/Dropbox/PhD/tmp/Break_catalyst/Test.jl:20
Some type information was truncated. Use `show(err)` to see complete types.
Environment (please complete the following information):
Julia Version 1.10.0
Commit 3120989f39 (2023-12-2518:01 UTC)
Build Info:
Note: This is an unofficial build, please report bugs to the project
responsible for this build and not to the Julia project unless you can
reproduce the issue using official builds available at https://julialang.org/downloads
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU:8×Intel(R) Core(TM) i5-8365U CPU @ 1.60GHz
WORD_SIZE:64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, skylake)
Threads:5 on 8 virtual cores
Environment:
JULIA_EDITOR = code
JULIA_NUM_THREADS =4
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug 🐞
When I try to solve a
JumpProblem
with aDiscreteCallback
using theSSAStepper
the code errors. This is a recent bug (it did not occur yesterday when I tested SBMLImporter on GitHub CI), and it manifests both locally and on GitHub CI. The problem might arise in DiffEqBase.Expected behavior
The
JumpProblem
should be properly solved without errors.Minimal Reproducible Example 👇
Error & Stacktrace⚠️
Environment (please complete the following information):
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: