Skip to content

Commit

Permalink
Update make_model_deterministic.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored Nov 2, 2024
1 parent 98cd9e6 commit 527d3a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/deterministic/make_model_deterministic.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using BeforeIT, MAT
using Test

import BeforeIT: randpl, epsilon, wsample_single
import BeforeIT: randpl, epsilon, wsample_single, swap_pop!
import Random: shuffle!, rand, randn
using Distributions

Expand Down Expand Up @@ -30,3 +30,7 @@ end
function wsample_single(v::UnitRange{Int64}, w::Vector{Float64}, wsum)
return v[1]
end

function swap_pop!(v::Vector, e)
return deleteat!(v, e)
end

0 comments on commit 527d3a2

Please sign in to comment.