1
0
Fork 0
mirror of https://gitlab.rlp.net/mobitar/ReCo.jl.git synced 2024-11-08 22:21:08 +00:00
ReCo.jl/analysis/pair_correlation.jl

29 lines
487 B
Julia
Raw Normal View History

2021-11-20 13:15:22 +00:00
if splitdir(pwd())[2] == "analysis"
cd("..")
end
2021-12-15 19:50:18 +00:00
if splitdir(pwd())[2] != "ReCo.jl"
error("You have to be in the main directeory ReCo.jl!")
2021-11-20 13:15:22 +00:00
else
2021-12-02 23:37:43 +00:00
include("src/analysis/pair_correlation_function.jl")
2021-11-20 13:15:22 +00:00
end
##
2021-12-15 19:50:18 +00:00
using JLD2: JLD2
2021-12-02 23:37:43 +00:00
2021-11-20 13:15:22 +00:00
using CairoMakie
CairoMakie.activate!()
2021-12-02 23:37:43 +00:00
set_theme!(theme_black())
2021-11-20 13:15:22 +00:00
##
dirs = readdir("exports/2021_11_19"; join=true)
##
for dir in dirs
data = JLD2.load("$dir/data.jld2")
display(pair_correlation(data["sol"], data["variables"]).fig)
end