Commit e087dc1f authored by Bentriou Mahmoud's avatar Bentriou Mahmoud
Browse files

Improvement of get_path_module()

parent bf7e270e
......@@ -4,10 +4,11 @@ import Base: +, -, getfield, getindex
export Model, ContinuousTimeModel, DiscreteTimeModel
export simulate, set_param!, get_param
export load_model
export is_bounded
export load_model, get_module_path
export Observations, AbstractTrajectory
export Observations, AbstractTrajectory, Trajectory
export +,-,δ,get_obs_variables,get_states_number
......@@ -84,7 +84,8 @@ function simulate(m::Model, n::Int; bound::Float64 = Inf)::AbstractObservations
function set_param!(m::Model, p::Vector{Float64})::Nothing end
function get_param(m::Model)::Vector{Float64} end
get_module_path() = dirname(dirname(pathof(@__MODULE__)))
function load_model(name_model::String)
include(pathof(@__MODULE__) * "/../../models/" * name_model * ".jl")
include(get_module_path() * "/models/" * name_model * ".jl")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment