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

Change core => src directory for Julia's convention of packages

parent 9b95dca2
No related branches found
No related tags found
No related merge requests found
Pipeline #19658 failed
Showing
with 15 additions and 11 deletions
name = "MarkovProcesses"
uuid = "c0b3d30c-0dcf-40cf-8981-542ba9d93cb6"
authors = ["Mahmoud Bentriou <mahmoud.bentriou@centralesupelec.fr>"]
version = "0.1.0"
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
using BenchmarkTools using BenchmarkTools
import BenchmarkTools: mean import BenchmarkTools: mean
using MarkovProcesses using MarkovProcesses
include(get_module_path() * "/core/_tests_simulate.jl") include(get_module_path() * "/src/_tests_simulate.jl")
BenchmarkTools.DEFAULT_PARAMETERS.samples = 20000 BenchmarkTools.DEFAULT_PARAMETERS.samples = 20000
if ARGS[1] == "SIR" if ARGS[1] == "SIR"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
using BenchmarkTools using BenchmarkTools
import BenchmarkTools: mean import BenchmarkTools: mean
using MarkovProcesses using MarkovProcesses
include(get_module_path() * "/core/_tests_simulate.jl") include(get_module_path() * "/src/_tests_simulate.jl")
str_model = ARGS[1] str_model = ARGS[1]
load_model(str_model) load_model(str_model)
......
...@@ -3,7 +3,7 @@ using BenchmarkTools ...@@ -3,7 +3,7 @@ using BenchmarkTools
import BenchmarkTools: mean import BenchmarkTools: mean
BenchmarkTools.DEFAULT_PARAMETERS.samples = 20000 BenchmarkTools.DEFAULT_PARAMETERS.samples = 20000
using MarkovProcesses using MarkovProcesses
include(get_module_path() * "/core/_tests_simulate.jl") include(get_module_path() * "/src/_tests_simulate.jl")
if ARGS[1] == "SIR" if ARGS[1] == "SIR"
l_var = [:S, :I, :R] l_var = [:S, :I, :R]
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
using BenchmarkTools using BenchmarkTools
import BenchmarkTools: mean import BenchmarkTools: mean
using MarkovProcesses using MarkovProcesses
include(get_module_path() * "/core/_tests_simulate.jl") include(get_module_path() * "/src/_tests_simulate.jl")
str_model = ARGS[1] str_model = ARGS[1]
load_model(str_model) load_model(str_model)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
using BenchmarkTools using BenchmarkTools
import BenchmarkTools: mean import BenchmarkTools: mean
using MarkovProcesses using MarkovProcesses
include(get_module_path() * "/core/_tests_simulate.jl") include(get_module_path() * "/src/_tests_simulate.jl")
BenchmarkTools.DEFAULT_PARAMETERS.samples = 20000 BenchmarkTools.DEFAULT_PARAMETERS.samples = 20000
if ARGS[1] == "SIR" if ARGS[1] == "SIR"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
using BenchmarkTools using BenchmarkTools
import BenchmarkTools: mean import BenchmarkTools: mean
using MarkovProcesses using MarkovProcesses
include(get_module_path() * "/core/_tests_simulate.jl") include(get_module_path() * "/src/_tests_simulate.jl")
BenchmarkTools.DEFAULT_PARAMETERS.samples = 20000 BenchmarkTools.DEFAULT_PARAMETERS.samples = 20000
if ARGS[1] == "SIR" if ARGS[1] == "SIR"
......
...@@ -3,7 +3,7 @@ using BenchmarkTools ...@@ -3,7 +3,7 @@ using BenchmarkTools
import BenchmarkTools: mean import BenchmarkTools: mean
BenchmarkTools.DEFAULT_PARAMETERS.samples = 20000 BenchmarkTools.DEFAULT_PARAMETERS.samples = 20000
using MarkovProcesses using MarkovProcesses
include(get_module_path() * "/core/_tests_simulate.jl") include(get_module_path() * "/src/_tests_simulate.jl")
if ARGS[1] == "SIR" if ARGS[1] == "SIR"
l_var = [:S, :I, :R] l_var = [:S, :I, :R]
......
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
...@@ -25,7 +25,7 @@ end ...@@ -25,7 +25,7 @@ end
load_model(name_model::String) = Base.MainInclude.include("$(get_module_path())/models/$(name_model).jl") load_model(name_model::String) = Base.MainInclude.include("$(get_module_path())/models/$(name_model).jl")
load_automaton(automaton::String) = Base.MainInclude.include("$(get_module_path())/automata/$(automaton).jl") load_automaton(automaton::String) = Base.MainInclude.include("$(get_module_path())/automata/$(automaton).jl")
load_plots() = Base.MainInclude.include(get_module_path() * "/core/plots.jl") load_plots() = Base.MainInclude.include(get_module_path() * "/src/plots.jl")
newid() = Dates.format(Dates.now(), "YmHMs") newid() = Dates.format(Dates.now(), "YmHMs")
...@@ -4,7 +4,7 @@ using Distributed ...@@ -4,7 +4,7 @@ using Distributed
addprocs(2) addprocs(2)
module_path = get_module_path() module_path = get_module_path()
@everywhere module_path = $module_path @everywhere module_path = $module_path
@everywhere push!(LOAD_PATH, "$(module_path)/core") @everywhere push!(LOAD_PATH, "$(module_path)/src")
@everywhere using MarkovProcesses @everywhere using MarkovProcesses
#= #=
@everywhere begin @everywhere begin
......
...@@ -4,7 +4,7 @@ using Distributed ...@@ -4,7 +4,7 @@ using Distributed
addprocs(2) addprocs(2)
module_path = get_module_path() module_path = get_module_path()
@everywhere module_path = $module_path @everywhere module_path = $module_path
@everywhere push!(LOAD_PATH, "$(module_path)/core") @everywhere push!(LOAD_PATH, "$(module_path)/src")
@everywhere using MarkovProcesses @everywhere using MarkovProcesses
import LinearAlgebra: dot import LinearAlgebra: dot
......
using MarkovProcesses using MarkovProcesses
include(get_module_path() * "/core/_tests_simulate.jl") include(get_module_path() * "/src/_tests_simulate.jl")
using PyPlot using PyPlot
load_model("_bench_perf_test/ER_row_buffer") load_model("_bench_perf_test/ER_row_buffer")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment