Skip to content
Snippets Groups Projects
Commit f039b40e authored by Bentriou Mahmoud's avatar Bentriou Mahmoud
Browse files

Rewriting of some test code: using the fact that the package is better structured

parent d08910ac
No related branches found
No related tags found
No related merge requests found
Pipeline #19674 failed
using MarkovProcesses
using Distributed
addprocs(2)
module_path = get_module_path()
@everywhere module_path = $module_path
@everywhere push!(LOAD_PATH, "$(module_path)/src")
@everywhere using MarkovProcesses
#=
@everywhere begin
path_module = $(path_module)
push!(LOAD_PATH, path_module)
using MarkovProcesses
load_model("ER")
load_automaton("automaton_F")
end
=#
load_model("ER")
load_automaton("automaton_F")
A_F_R1 = create_automaton_F(ER, 50.0, 75.0, 0.025, 0.05, :P)
......
using MarkovProcesses
using Distributed
addprocs(2)
module_path = get_module_path()
@everywhere module_path = $module_path
@everywhere push!(LOAD_PATH, "$(module_path)/src")
@everywhere using MarkovProcesses
import LinearAlgebra: dot
......
using Distributed
using Test
using MarkovProcesses
include("run_unit.jl")
include("run_simulation.jl")
include("run_dist_lp.jl")
......
using Distributed
using MarkovProcesses
# A bunch of code to define the package on the workers
# because they are created after the execution of Julia
addprocs(2)
module_path = get_module_path()
@everywhere module_path = $module_path
@everywhere push!(LOAD_PATH, "$(module_path)/src")
@everywhere using MarkovProcesses
test_all = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment