From 0582f0d104bfcf648d204430d685e464e0c0736b Mon Sep 17 00:00:00 2001 From: Emmanuel Lujan Date: Wed, 5 Jun 2024 16:01:56 -0400 Subject: [PATCH] Change in data path of Na example. --- examples/Na/fit-dpp-ace-na.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/Na/fit-dpp-ace-na.jl b/examples/Na/fit-dpp-ace-na.jl index 6218f548..c34a4361 100644 --- a/examples/Na/fit-dpp-ace-na.jl +++ b/examples/Na/fit-dpp-ace-na.jl @@ -5,7 +5,8 @@ using AtomsBase, InteratomicPotentials, PotentialLearning using LinearAlgebra, CairoMakie # Load dataset -confs, thermo = load_data("data/liquify_sodium.yaml", YAML(:Na, u"eV", u"Å")) +data_path = joinpath(dirname(pathof(PotentialLearning)), "../examples/Na/data") +confs, thermo = load_data("$data_path/liquify_sodium.yaml", YAML(:Na, u"eV", u"Å")) confs, thermo = confs[220:end], thermo[220:end] # Split dataset