-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInclude.jl
More file actions
36 lines (33 loc) · 1014 Bytes
/
Include.jl
File metadata and controls
36 lines (33 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# setup paths -
const _ROOT = @__DIR__
const _PATH_TO_SRC = joinpath(_ROOT, "src");
const _PATH_TO_DATA = joinpath(_ROOT, "data");
const _PATH_TO_FIGURES = joinpath(_ROOT, "figs");
# check: do we have the required packahes loaded??
using Pkg
if (isfile(joinpath(_ROOT, "Manifest.toml")) == false) # have manifest file, we are good. Otherwise, we need to instantiate the environment
Pkg.activate("."); Pkg.resolve(); Pkg.instantiate(); Pkg.update();
end
# load external packages -
using LinearAlgebra;
using Statistics;
using Distributions;
using DataFrames;
using JLD2;
using FileIO;
using Plots;
using Colors;
using StatsPlots;
using HypothesisTests;
using StatsBase;
using Dates;
using Turing;
using ProgressMeter;
using Distances;
using PrettyTables;
# include my codes -
include(joinpath(_PATH_TO_SRC, "Types.jl"));
include(joinpath(_PATH_TO_SRC, "Files.jl"));
include(joinpath(_PATH_TO_SRC, "Factory.jl"));
include(joinpath(_PATH_TO_SRC, "Compute.jl"));
include(joinpath(_PATH_TO_SRC, "Visualize.jl"));