Skip to content

Commit

Permalink
more ambiguities
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacsas committed Jan 3, 2024
1 parent a70288f commit 3d81417
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 11 deletions.
3 changes: 2 additions & 1 deletion src/aggregators/coevolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ function aggregate(aggregator::Coevolve, u, p, t, end_time, constant_jumps,
end

# set up a new simulation and calculate the first jump / jump time
function initialize!(p::CoevolveJumpAggregation, integrator, u, params, t)
function initialize!(p::CoevolveJumpAggregation, integrator::DiffEqBase.DEIntegrator, u,
params, t)
p.end_time = integrator.sol.prob.tspan[2]
fill_rates_and_get_times!(p, u, params, t)
generate_jumps!(p, integrator, u, params, t)
Expand Down
3 changes: 2 additions & 1 deletion src/aggregators/direct.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ function aggregate(aggregator::DirectFW, u, p, t, end_time, constant_jumps,
end

# set up a new simulation and calculate the first jump / jump time
function initialize!(p::DirectJumpAggregation, integrator, u, params, t)
function initialize!(p::DirectJumpAggregation, integrator::DiffEqBase.DEIntegrator, u,
params, t)
p.end_time = integrator.sol.prob.tspan[2]
generate_jumps!(p, integrator, u, params, t)
nothing
Expand Down
3 changes: 2 additions & 1 deletion src/aggregators/directcr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ function aggregate(aggregator::DirectCR, u, p, t, end_time, constant_jumps,
end

# set up a new simulation and calculate the first jump / jump time
function initialize!(p::DirectCRJumpAggregation, integrator, u, params, t)
function initialize!(p::DirectCRJumpAggregation, integrator::DiffEqBase.DEIntegrator, u,

Check warning on line 88 in src/aggregators/directcr.jl

View check run for this annotation

Codecov / codecov/patch

src/aggregators/directcr.jl#L88

Added line #L88 was not covered by tests
params, t)
p.end_time = integrator.sol.prob.tspan[2]

# initialize rates
Expand Down
3 changes: 2 additions & 1 deletion src/aggregators/frm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ function aggregate(aggregator::FRMFW, u, p, t, end_time, constant_jumps,
end

# set up a new simulation and calculate the first jump / jump time
function initialize!(p::FRMJumpAggregation, integrator, u, params, t)
function initialize!(p::FRMJumpAggregation, integrator::DiffEqBase.DEIntegrator, u,

Check warning on line 48 in src/aggregators/frm.jl

View check run for this annotation

Codecov / codecov/patch

src/aggregators/frm.jl#L48

Added line #L48 was not covered by tests
params, t)
p.end_time = integrator.sol.prob.tspan[2]
generate_jumps!(p, integrator, u, params, t)
nothing
Expand Down
3 changes: 2 additions & 1 deletion src/aggregators/nrm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ function aggregate(aggregator::NRM, u, p, t, end_time, constant_jumps,
end

# set up a new simulation and calculate the first jump / jump time
function initialize!(p::NRMJumpAggregation, integrator, u, params, t)
function initialize!(p::NRMJumpAggregation, integrator::DiffEqBase.DEIntegrator, u,

Check warning on line 63 in src/aggregators/nrm.jl

View check run for this annotation

Codecov / codecov/patch

src/aggregators/nrm.jl#L63

Added line #L63 was not covered by tests
params, t)
p.end_time = integrator.sol.prob.tspan[2]
fill_rates_and_get_times!(p, u, params, t)
generate_jumps!(p, integrator, u, params, t)
Expand Down
3 changes: 2 additions & 1 deletion src/aggregators/rdirect.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ function aggregate(aggregator::RDirect, u, p, t, end_time, constant_jumps,
end

# set up a new simulation and calculate the first jump / jump time
function initialize!(p::RDirectJumpAggregation, integrator, u, params, t)
function initialize!(p::RDirectJumpAggregation, integrator::DiffEqBase.DEIntegrator, u,

Check warning on line 67 in src/aggregators/rdirect.jl

View check run for this annotation

Codecov / codecov/patch

src/aggregators/rdirect.jl#L67

Added line #L67 was not covered by tests
params, t)
p.end_time = integrator.sol.prob.tspan[2]
fill_rates_and_sum!(p, u, params, t)
p.max_rate = maximum(p.cur_rates)
Expand Down
3 changes: 2 additions & 1 deletion src/aggregators/rssa.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ function aggregate(aggregator::RSSA, u, p, t, end_time, constant_jumps,
end

# set up a new simulation and calculate the first jump / jump time
function initialize!(p::RSSAJumpAggregation, integrator, u, params, t)
function initialize!(p::RSSAJumpAggregation, integrator::DiffEqBase.DEIntegrator,

Check warning on line 88 in src/aggregators/rssa.jl

View check run for this annotation

Codecov / codecov/patch

src/aggregators/rssa.jl#L88

Added line #L88 was not covered by tests
u, params, t)
p.end_time = integrator.sol.prob.tspan[2]
set_bracketing!(p, u, params, t)
generate_jumps!(p, integrator, u, params, t)
Expand Down
3 changes: 2 additions & 1 deletion src/aggregators/rssacr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ function aggregate(aggregator::RSSACR, u, p, t, end_time, constant_jumps,
end

# set up a new simulation and calculate the first jump / jump time
function initialize!(p::RSSACRJumpAggregation, integrator, u, params, t)
function initialize!(p::RSSACRJumpAggregation, integrator::DiffEqBase.DEIntegrator,

Check warning on line 105 in src/aggregators/rssacr.jl

View check run for this annotation

Codecov / codecov/patch

src/aggregators/rssacr.jl#L105

Added line #L105 was not covered by tests
u, params, t)
p.end_time = integrator.sol.prob.tspan[2]
set_bracketing!(p, u, params, t)

Expand Down
3 changes: 2 additions & 1 deletion src/aggregators/sortingdirect.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ function aggregate(aggregator::SortingDirect, u, p, t, end_time, constant_jumps,
end

# set up a new simulation and calculate the first jump / jump time
function initialize!(p::SortingDirectJumpAggregation, integrator, u, params, t)
function initialize!(p::SortingDirectJumpAggregation, integrator::DiffEqBase.DEIntegrator,

Check warning on line 67 in src/aggregators/sortingdirect.jl

View check run for this annotation

Codecov / codecov/patch

src/aggregators/sortingdirect.jl#L67

Added line #L67 was not covered by tests
u, params, t)
p.end_time = integrator.sol.prob.tspan[2]
fill_rates_and_sum!(p, u, params, t)
generate_jumps!(p, integrator, u, params, t)
Expand Down
3 changes: 2 additions & 1 deletion src/spatial/directcrdirect.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ function aggregate(aggregator::DirectCRDirect, starting_state, p, t, end_time,
end

# set up a new simulation and calculate the first jump / jump time
function initialize!(p::DirectCRDirectJumpAggregation, integrator, u, params, t)
function initialize!(p::DirectCRDirectJumpAggregation, integrator::DiffEqBase.DEIntegrator,

Check warning on line 107 in src/spatial/directcrdirect.jl

View check run for this annotation

Codecov / codecov/patch

src/spatial/directcrdirect.jl#L107

Added line #L107 was not covered by tests
u, params, t)
p.end_time = integrator.sol.prob.tspan[2]
fill_rates_and_get_times!(p, integrator, t)
generate_jumps!(p, integrator, params, u, t)
Expand Down
3 changes: 2 additions & 1 deletion src/spatial/nsm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ function aggregate(aggregator::NSM, starting_state, p, t, end_time, constant_jum
end

# set up a new simulation and calculate the first jump / jump time
function initialize!(p::NSMJumpAggregation, integrator, u, params, t)
function initialize!(p::NSMJumpAggregation, integrator::DiffEqBase.DEIntegrator, u,
params, t)
p.end_time = integrator.sol.prob.tspan[2]
fill_rates_and_get_times!(p, integrator, t)
generate_jumps!(p, integrator, params, u, t)
Expand Down

0 comments on commit 3d81417

Please sign in to comment.