Skip to content

Commit 77a3431

Browse files
Merge pull request #1674 from isaacsas/rename-diffeqjump
Rename DiffEqJump to JumpProcesses
2 parents 942a24d + 1be7ad9 commit 77a3431

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ ConstructionBase = "187b0558-2788-49d3-abe0-74a17ed4e7c9"
1111
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
1212
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
1313
DiffEqCallbacks = "459566f4-90b8-5000-8ac3-15dfb0a30def"
14-
DiffEqJump = "c894b116-72e5-5b58-be3c-e6d8d4ac2b12"
1514
DiffRules = "b552c78f-8df3-52c6-915a-8e097449b14b"
1615
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
1716
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
@@ -21,6 +20,7 @@ Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
2120
IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"
2221
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
2322
JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
23+
JumpProcesses = "ccbc3e58-028d-4f4c-8cd5-9ae44345cda5"
2424
LabelledArrays = "2ee39098-c373-598a-b85f-a56591580800"
2525
Latexify = "23fbe1c1-3f47-55db-b15f-69d7ec21a316"
2626
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
@@ -50,14 +50,14 @@ ConstructionBase = "1"
5050
DataStructures = "0.17, 0.18"
5151
DiffEqBase = "6.83.0"
5252
DiffEqCallbacks = "2.16"
53-
DiffEqJump = "7.0, 8"
5453
DiffRules = "0.1, 1.0"
5554
Distributions = "0.23, 0.24, 0.25"
5655
DocStringExtensions = "0.7, 0.8, 0.9"
5756
DomainSets = "0.5"
5857
Graphs = "1.5.2"
5958
IfElse = "0.1"
6059
JuliaFormatter = "1"
60+
JumpProcesses = "9"
6161
LabelledArrays = "1.3"
6262
Latexify = "0.11, 0.12, 0.13, 0.14, 0.15"
6363
MacroTools = "0.5"

src/ModelingToolkit.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ using Latexify, Unitful, ArrayInterfaceCore
1212
using MacroTools
1313
@reexport using UnPack
1414
using Setfield, ConstructionBase
15-
using DiffEqJump
15+
using JumpProcesses
1616
using DataStructures
1717
using SpecialFunctions, NaNMath
1818
using RuntimeGeneratedFunctions

src/systems/jumps/jumpsystem.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ and no SDEs associated with the system.
212212
213213
Continuing the example from the [`JumpSystem`](@ref) definition:
214214
```julia
215-
using DiffEqBase, DiffEqJump
215+
using DiffEqBase, JumpProcesses
216216
u₀map = [S => 999, I => 1, R => 0]
217217
parammap = [β => .1/1000, γ => .01]
218218
tspan = (0.0, 250.0)
@@ -264,7 +264,7 @@ and no SDEs associated with the system.
264264
265265
Continuing the example from the [`JumpSystem`](@ref) definition:
266266
```julia
267-
using DiffEqBase, DiffEqJump
267+
using DiffEqBase, JumpProcesses
268268
u₀map = [S => 999, I => 1, R => 0]
269269
parammap = [β => .1/1000, γ => .01]
270270
tspan = (0.0, 250.0)
@@ -305,7 +305,7 @@ jprob = JumpProblem(js, dprob, Direct())
305305
sol = solve(jprob, SSAStepper())
306306
```
307307
"""
308-
function DiffEqJump.JumpProblem(js::JumpSystem, prob, aggregator; kwargs...)
308+
function JumpProcesses.JumpProblem(js::JumpSystem, prob, aggregator; kwargs...)
309309
statetoid = Dict(value(state) => i for (i, state) in enumerate(states(js)))
310310
eqs = equations(js)
311311
invttype = prob.tspan[1] === nothing ? Float64 : typeof(1 / prob.tspan[2])
@@ -421,6 +421,6 @@ function (ratemap::JumpSysMajParamMapper{U, V, W})(maj::MassActionJump, newparam
421421
value(substitute(ratemap.paramexprs[i],
422422
ratemap.subdict)))
423423
end
424-
scale_rates && DiffEqJump.scalerates!(maj.scaled_rates, maj.reactant_stoch)
424+
scale_rates && JumpProcesses.scalerates!(maj.scaled_rates, maj.reactant_stoch)
425425
nothing
426426
end

test/dep_graphs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Test
2-
using ModelingToolkit, Graphs, DiffEqJump
2+
using ModelingToolkit, Graphs, JumpProcesses
33

44
import ModelingToolkit: value
55

test/jumpsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using ModelingToolkit, DiffEqBase, DiffEqJump, Test, LinearAlgebra
1+
using ModelingToolkit, DiffEqBase, JumpProcesses, Test, LinearAlgebra
22
MT = ModelingToolkit
33

44
# basic MT SIR model with tweaks

test/units.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using ModelingToolkit, Unitful, OrdinaryDiffEq, DiffEqJump, IfElse
1+
using ModelingToolkit, Unitful, OrdinaryDiffEq, JumpProcesses, IfElse
22
using Test
33
MT = ModelingToolkit
44
@parameters τ [unit = u"ms"] γ
@@ -88,7 +88,7 @@ noiseeqs = [0.1u"MW" 0.1u"MW"
8888
0.1u"MW" 0.1u"MW"]
8989
@named sys = SDESystem(eqs, noiseeqs, t, [P, E], [τ, Q])
9090

91-
# Invalid noise matrix
91+
# Invalid noise matrix
9292
noiseeqs = [0.1u"MW" 0.1u"MW"
9393
0.1u"MW" 0.1u"s"]
9494
@test !MT.validate(eqs, noiseeqs)

0 commit comments

Comments
 (0)