From 19d0cfd8465cb375f917988f934c46976d6f72f3 Mon Sep 17 00:00:00 2001 From: pclus Date: Fri, 27 Sep 2024 11:52:43 +0200 Subject: [PATCH] Changed README --- .gitignore | 1 + README.md | 17 +++++++++++------ src/.KuramotoPopulationNetwork.jl.swp | Bin 16384 -> 0 bytes 3 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 .gitignore delete mode 100644 src/.KuramotoPopulationNetwork.jl.swp diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d9568ca --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*swp diff --git a/README.md b/README.md index df492f2..146c4a5 100644 --- a/README.md +++ b/README.md @@ -12,15 +12,19 @@ Two different set of codes are provided: ## Using the `KuramotoPopulationNetwork` module -Open a Julia REPL in the `src` folder and then use the following -to include it in the path and load it, alongside other packages. -Notice that you might have to install new packages (see the `KuramotoPopulationNetwork.jl` file to identify which ones). +Open a Julia REPL in the directory, activate the project and load/install all required dependencies: ```julia -push!(LOAD_PATH, pwd()) +] activate . +] instantiate using KuramotoPopulationNetwork -using Graphs -using Plots,ColorSchemes +``` + +Apart from these packages, to run these examples we also need three other packages. +Load (or install) them with: + +``` +using Graphs, Plots, ColorSchemes ``` Then we can use `Graphs.jl` to generate a ring network with nearest neighbours: @@ -81,6 +85,7 @@ t,R,ϕ,u0 = simulation(;K=14.0,p=0.9,α=1.2,gr=g_er,trans=5e2,tmax=4e2,ic="homog λ, = simulationLE(;K=14,p=0.9,α=1.2,gr=g_er,trans=2e2,tmax=1e3,nLE=2*size(g_er,1),ic=u0); ``` and plot the results: + ```julia n = size(R,1) trange = n-10000:1:n; diff --git a/src/.KuramotoPopulationNetwork.jl.swp b/src/.KuramotoPopulationNetwork.jl.swp deleted file mode 100644 index d7fb5ffcd77e05a5a638486ef5f34fc78b73a86d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16384 zcmeHOZ>$_u6(1~!px_^j0*T3?FSfJ$X7}xG0qbiA`ubim?Q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