mirror of
https://gitlab.rlp.net/mobitar/ReCo.jl.git
synced 2024-09-17 18:51:17 +00:00
Fix deps and path to exports
This commit is contained in:
parent
d73cd9b8d9
commit
bea854f360
15 changed files with 29 additions and 27 deletions
17
README.adoc
17
README.adoc
|
@ -38,8 +38,9 @@ If specified otherwise, an environment in a subdirectory has to be activated ins
|
||||||
|
|
||||||
[source,julia]
|
[source,julia]
|
||||||
----
|
----
|
||||||
|
cd("SUBDIRECTORY")
|
||||||
using Pkg
|
using Pkg
|
||||||
Pkg.activate("SUBDIRECTORY")
|
Pkg.activate(".")
|
||||||
----
|
----
|
||||||
|
|
||||||
=== Install/update dependencies
|
=== Install/update dependencies
|
||||||
|
@ -97,7 +98,7 @@ To generate an animation of a simulation, run the following:
|
||||||
|
|
||||||
[source,julia]
|
[source,julia]
|
||||||
----
|
----
|
||||||
include("visualization/Animation.jl")
|
include("Animation.jl")
|
||||||
using .Animation
|
using .Animation
|
||||||
animate(sim_dir)
|
animate(sim_dir)
|
||||||
----
|
----
|
||||||
|
@ -110,7 +111,7 @@ To plot only one snapshot of a simulation, run the following:
|
||||||
|
|
||||||
[source,julia]
|
[source,julia]
|
||||||
----
|
----
|
||||||
include("visualization/SnapshotPlot.jl")
|
include("SnapshotPlot.jl")
|
||||||
using .SnapshotPlot
|
using .SnapshotPlot
|
||||||
plot_snapshot(sim_dir)
|
plot_snapshot(sim_dir)
|
||||||
----
|
----
|
||||||
|
@ -152,7 +153,7 @@ To plot the rewards, activate the environment of the subdirectory `visualization
|
||||||
|
|
||||||
[source,julia]
|
[source,julia]
|
||||||
----
|
----
|
||||||
include("visualization/RewardsPlot.jl")
|
include("RewardsPlot.jl")
|
||||||
using .RewardsPlot
|
using .RewardsPlot
|
||||||
plot_rewards(rl_dir)
|
plot_rewards(rl_dir)
|
||||||
----
|
----
|
||||||
|
@ -165,7 +166,7 @@ To plot the mean of kappa as the ratio of the eigenvalues of the gyration tensor
|
||||||
|
|
||||||
[source,julia]
|
[source,julia]
|
||||||
----
|
----
|
||||||
include("analysis/mean_kappa.jl")
|
include("mean_kappa.jl")
|
||||||
plot_mean_κ(; rl_dir=rl_dir, n_last_episodes=N_LAST_EPISODES)
|
plot_mean_κ(; rl_dir=rl_dir, n_last_episodes=N_LAST_EPISODES)
|
||||||
----
|
----
|
||||||
|
|
||||||
|
@ -179,7 +180,7 @@ First, activate the environment of the subdirectory `analysis`.
|
||||||
|
|
||||||
[source,julia]
|
[source,julia]
|
||||||
----
|
----
|
||||||
include("analysis/mean_squared_displacement.jl")
|
include("mean_squared_displacement.jl")
|
||||||
run_msd_analysis()
|
run_msd_analysis()
|
||||||
run_random_walk()
|
run_random_walk()
|
||||||
----
|
----
|
||||||
|
@ -190,7 +191,7 @@ The output is `exports/graphics/mean_squared_displacement.pdf` and `exports/grap
|
||||||
|
|
||||||
[source,julia]
|
[source,julia]
|
||||||
----
|
----
|
||||||
include("analysis/radial_distribution_function/radial_distribution_function.jl")
|
include("radial_distribution_function/radial_distribution_function.jl")
|
||||||
run_radial_distribution_analysis()
|
run_radial_distribution_analysis()
|
||||||
----
|
----
|
||||||
|
|
||||||
|
@ -200,7 +201,7 @@ The output is `exports/graphics/radial_distribution.pdf` and `exports/graphics/r
|
||||||
|
|
||||||
[source,julia]
|
[source,julia]
|
||||||
----
|
----
|
||||||
include("analysis/reward_discount_analysis.jl")
|
include("reward_discount_analysis.jl")
|
||||||
run_reward_discount_analysis()
|
run_reward_discount_analysis()
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|
|
@ -1177,9 +1177,9 @@ version = "0.4.3"
|
||||||
|
|
||||||
[[deps.ReCo]]
|
[[deps.ReCo]]
|
||||||
deps = ["CellListMap", "Dates", "Distributions", "Flux", "Intervals", "JLD2", "LaTeXStrings", "LinearAlgebra", "ProgressMeter", "Random", "ReinforcementLearning", "StaticArrays", "UnicodePlots"]
|
deps = ["CellListMap", "Dates", "Distributions", "Flux", "Intervals", "JLD2", "LaTeXStrings", "LinearAlgebra", "ProgressMeter", "Random", "ReinforcementLearning", "StaticArrays", "UnicodePlots"]
|
||||||
git-tree-sha1 = "42e2dcd54bfde978a7652ad502e981533470aa85"
|
git-tree-sha1 = "ba8cf7e8c6968aedad9c097aa8559ed054803bde"
|
||||||
repo-rev = "main"
|
repo-rev = "main"
|
||||||
repo-url = "https://gitlab.rlp.net/mobitar/ReCo.jl"
|
repo-url = ".."
|
||||||
uuid = "b25f7548-fcc9-4c91-bc24-841b54f4dd54"
|
uuid = "b25f7548-fcc9-4c91-bc24-841b54f4dd54"
|
||||||
version = "0.5.0"
|
version = "0.5.0"
|
||||||
|
|
||||||
|
|
|
@ -1136,9 +1136,9 @@ version = "0.4.3"
|
||||||
|
|
||||||
[[deps.ReCo]]
|
[[deps.ReCo]]
|
||||||
deps = ["CellListMap", "Dates", "Distributions", "Flux", "Intervals", "JLD2", "LaTeXStrings", "LinearAlgebra", "ProgressMeter", "Random", "ReinforcementLearning", "StaticArrays", "UnicodePlots"]
|
deps = ["CellListMap", "Dates", "Distributions", "Flux", "Intervals", "JLD2", "LaTeXStrings", "LinearAlgebra", "ProgressMeter", "Random", "ReinforcementLearning", "StaticArrays", "UnicodePlots"]
|
||||||
git-tree-sha1 = "42e2dcd54bfde978a7652ad502e981533470aa85"
|
git-tree-sha1 = "ba8cf7e8c6968aedad9c097aa8559ed054803bde"
|
||||||
repo-rev = "main"
|
repo-rev = "main"
|
||||||
repo-url = "https://gitlab.rlp.net/mobitar/ReCo.jl"
|
repo-url = "../.."
|
||||||
uuid = "b25f7548-fcc9-4c91-bc24-841b54f4dd54"
|
uuid = "b25f7548-fcc9-4c91-bc24-841b54f4dd54"
|
||||||
version = "0.5.0"
|
version = "0.5.0"
|
||||||
|
|
||||||
|
|
|
@ -931,9 +931,9 @@ version = "1.5.3"
|
||||||
|
|
||||||
[[deps.ReCo]]
|
[[deps.ReCo]]
|
||||||
deps = ["CellListMap", "Dates", "Distributions", "Flux", "Intervals", "JLD2", "LaTeXStrings", "LinearAlgebra", "ProgressMeter", "Random", "ReinforcementLearning", "StaticArrays", "UnicodePlots"]
|
deps = ["CellListMap", "Dates", "Distributions", "Flux", "Intervals", "JLD2", "LaTeXStrings", "LinearAlgebra", "ProgressMeter", "Random", "ReinforcementLearning", "StaticArrays", "UnicodePlots"]
|
||||||
git-tree-sha1 = "42e2dcd54bfde978a7652ad502e981533470aa85"
|
git-tree-sha1 = "ba8cf7e8c6968aedad9c097aa8559ed054803bde"
|
||||||
repo-rev = "main"
|
repo-rev = "main"
|
||||||
repo-url = "https://gitlab.rlp.net/mobitar/ReCo.jl"
|
repo-url = "../.."
|
||||||
uuid = "b25f7548-fcc9-4c91-bc24-841b54f4dd54"
|
uuid = "b25f7548-fcc9-4c91-bc24-841b54f4dd54"
|
||||||
version = "0.5.0"
|
version = "0.5.0"
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ function gen_COM_graphics()
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
||||||
graphics_export_dir = "exports/graphics/COM"
|
graphics_export_dir = "../../exports/graphics/COM"
|
||||||
mkpath(graphics_export_dir)
|
mkpath(graphics_export_dir)
|
||||||
|
|
||||||
Drawing(box_length, box_height, "$graphics_export_dir/linear.pdf")
|
Drawing(box_length, box_height, "$graphics_export_dir/linear.pdf")
|
||||||
|
|
|
@ -9,7 +9,7 @@ function gen_periodic_boundary_conditions_graphics()
|
||||||
|
|
||||||
drawing_box_length = 300
|
drawing_box_length = 300
|
||||||
|
|
||||||
graphics_export_dir = "exports/graphics"
|
graphics_export_dir = "../../exports/graphics"
|
||||||
mkpath(graphics_export_dir)
|
mkpath(graphics_export_dir)
|
||||||
|
|
||||||
Drawing(
|
Drawing(
|
||||||
|
|
|
@ -9,7 +9,7 @@ function gen_rdf_graphics()
|
||||||
|
|
||||||
box_length = 100
|
box_length = 100
|
||||||
|
|
||||||
graphics_export_dir = "exports/graphics"
|
graphics_export_dir = "../../exports/graphics"
|
||||||
mkpath(graphics_export_dir)
|
mkpath(graphics_export_dir)
|
||||||
|
|
||||||
Drawing(box_length, box_length, "$graphics_export_dir/rdf_shells.pdf")
|
Drawing(box_length, box_length, "$graphics_export_dir/rdf_shells.pdf")
|
||||||
|
|
|
@ -9,7 +9,7 @@ function gen_verlet_and_cell_lists_graphics()
|
||||||
|
|
||||||
box_length = 100
|
box_length = 100
|
||||||
|
|
||||||
graphics_export_dir = "exports/graphics"
|
graphics_export_dir = "../../exports/graphics"
|
||||||
mkpath(graphics_export_dir)
|
mkpath(graphics_export_dir)
|
||||||
|
|
||||||
Drawing(box_length, box_length, "$graphics_export_dir/verlet_and_cell_lists.pdf")
|
Drawing(box_length, box_length, "$graphics_export_dir/verlet_and_cell_lists.pdf")
|
||||||
|
|
|
@ -26,7 +26,7 @@ function run_benchmarks(
|
||||||
|
|
||||||
display(benchmark)
|
display(benchmark)
|
||||||
|
|
||||||
open("exports/benchmark.txt", "a+") do f
|
open("../exports/benchmark.txt", "a+") do f
|
||||||
JSON3.pretty(
|
JSON3.pretty(
|
||||||
f,
|
f,
|
||||||
Dict(
|
Dict(
|
||||||
|
|
|
@ -965,9 +965,9 @@ version = "1.5.3"
|
||||||
|
|
||||||
[[deps.ReCo]]
|
[[deps.ReCo]]
|
||||||
deps = ["CellListMap", "Dates", "Distributions", "Flux", "Intervals", "JLD2", "LaTeXStrings", "LinearAlgebra", "ProgressMeter", "Random", "ReinforcementLearning", "StaticArrays", "UnicodePlots"]
|
deps = ["CellListMap", "Dates", "Distributions", "Flux", "Intervals", "JLD2", "LaTeXStrings", "LinearAlgebra", "ProgressMeter", "Random", "ReinforcementLearning", "StaticArrays", "UnicodePlots"]
|
||||||
git-tree-sha1 = "42e2dcd54bfde978a7652ad502e981533470aa85"
|
git-tree-sha1 = "ba8cf7e8c6968aedad9c097aa8559ed054803bde"
|
||||||
repo-rev = "main"
|
repo-rev = "main"
|
||||||
repo-url = "https://gitlab.rlp.net/mobitar/ReCo.jl"
|
repo-url = ".."
|
||||||
uuid = "b25f7548-fcc9-4c91-bc24-841b54f4dd54"
|
uuid = "b25f7548-fcc9-4c91-bc24-841b54f4dd54"
|
||||||
version = "0.5.0"
|
version = "0.5.0"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
.
|
.
|
||||||
test
|
|
||||||
analysis
|
analysis
|
||||||
graphics/CairoMakie_graphics
|
graphics/CairoMakie_graphics
|
||||||
graphics/Luxor_graphics
|
graphics/Luxor_graphics
|
||||||
performance
|
performance
|
||||||
|
test
|
||||||
visualization
|
visualization
|
||||||
|
|
|
@ -2,9 +2,11 @@ using Pkg: Pkg
|
||||||
|
|
||||||
function update()
|
function update()
|
||||||
projects = readlines("scripts/projects.txt")
|
projects = readlines("scripts/projects.txt")
|
||||||
|
base_dir = pwd()
|
||||||
|
|
||||||
for project in projects
|
for project in projects
|
||||||
Pkg.activate(project)
|
cd(joinpath(base_dir, project))
|
||||||
|
Pkg.activate(".")
|
||||||
Pkg.update()
|
Pkg.update()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,6 @@ function animate_bundle!(args, sim_consts::ReCo.SimConsts)
|
||||||
end
|
end
|
||||||
|
|
||||||
if args.n_bundle == 1 && bundle_snapshot == 1
|
if args.n_bundle == 1 && bundle_snapshot == 1
|
||||||
println("OK")
|
|
||||||
scatter!(
|
scatter!(
|
||||||
args.ax,
|
args.ax,
|
||||||
args.particle_xs,
|
args.particle_xs,
|
||||||
|
|
|
@ -1172,9 +1172,9 @@ version = "0.4.3"
|
||||||
|
|
||||||
[[deps.ReCo]]
|
[[deps.ReCo]]
|
||||||
deps = ["CellListMap", "Dates", "Distributions", "Flux", "Intervals", "JLD2", "LaTeXStrings", "LinearAlgebra", "ProgressMeter", "Random", "ReinforcementLearning", "StaticArrays", "UnicodePlots"]
|
deps = ["CellListMap", "Dates", "Distributions", "Flux", "Intervals", "JLD2", "LaTeXStrings", "LinearAlgebra", "ProgressMeter", "Random", "ReinforcementLearning", "StaticArrays", "UnicodePlots"]
|
||||||
git-tree-sha1 = "42e2dcd54bfde978a7652ad502e981533470aa85"
|
git-tree-sha1 = "ba8cf7e8c6968aedad9c097aa8559ed054803bde"
|
||||||
repo-rev = "main"
|
repo-rev = "main"
|
||||||
repo-url = "https://gitlab.rlp.net/mobitar/ReCo.jl"
|
repo-url = ".."
|
||||||
uuid = "b25f7548-fcc9-4c91-bc24-841b54f4dd54"
|
uuid = "b25f7548-fcc9-4c91-bc24-841b54f4dd54"
|
||||||
version = "0.5.0"
|
version = "0.5.0"
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ function set_gaps!(fig::Figure)
|
||||||
return nothing
|
return nothing
|
||||||
end
|
end
|
||||||
|
|
||||||
function save_fig(filename::String, fig::Figure; parent_dir="exports/graphics")
|
function save_fig(filename::String, fig::Figure; parent_dir="../exports/graphics")
|
||||||
mkpath(parent_dir)
|
mkpath(parent_dir)
|
||||||
|
|
||||||
save("$parent_dir/$filename", fig; pt_per_unit=1)
|
save("$parent_dir/$filename", fig; pt_per_unit=1)
|
||||||
|
|
Loading…
Reference in a new issue