Skip to content

Commit 71ce4c4

Browse files
committed
Small changes. File renaming.
1 parent 2291af5 commit 71ce4c4

8 files changed

Lines changed: 13 additions & 8 deletions

File tree

examples/atomistic/sme-iso17.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using StreamingSampling
22

3-
include("utils/AtomsSampling.jl")
3+
include("utils/utils.jl")
44

55
# Datase files
66
file_paths = ["data/iso17/my_iso17_train.extxyz"]

examples/atomistic/srs-vs-sme-aspirin-rmd17.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using StreamingSampling
22

3-
include("utils/AtomsSampling.jl")
3+
include("utils/utils.jl")
44

55
# Define paths and create experiment folder
66
train_path = ["data/md17/aspirin-train.xyz"]
@@ -115,7 +115,7 @@ for j in 1:n_experiments
115115
#Load atomistic configurations
116116
train_confs = get_confs(train_path, train_inds)
117117
#Adjust reference energies (permanent change)
118-
adjust_energies(train_confs,vref_dict)
118+
adjust_energies(train_confs, vref_dict)
119119
# Compute dataset with energy and force descriptors
120120
train_ds = calc_descr(train_confs, basis_fitting)
121121
# Create result folder
@@ -139,6 +139,8 @@ for j in 1:n_experiments
139139

140140
#Load atomistic configurations
141141
train_confs = get_confs(train_path, train_inds)
142+
#Adjust reference energies (permanent change)
143+
adjust_energies(train_confs, vref_dict)
142144
# Compute dataset with energy and force descriptors
143145
train_ds = calc_descr(train_confs, basis_fitting)
144146
# Create result folder

examples/atomistic/srs-vs-sme-hfo2.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using StreamingSampling
22

3-
include("utils/AtomsSampling.jl")
3+
include("utils/utils.jl")
44

55
# Define paths and create experiment folder
66
ds_paths = ["Hf_mp1009460_EOS_form_sorted.extxyz",
@@ -107,6 +107,7 @@ n_test = length(ds_test_rnd)
107107
# Compute reference energies
108108
s = 0.0
109109
m = 10_000
110+
read_element(io) = read_element_extxyz(io)
110111
ch, _ = chunk_iterator(ds_paths;
111112
read_element=read_element,
112113
chunksize=m,

examples/atomistic/srs-vs-sme-iso17.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using StreamingSampling
22

3-
include("utils/AtomsSampling.jl")
3+
include("utils/utils.jl")
44

55
# Define paths and create experiment folder
66
train_path = ["data/iso17/my_iso17_train.extxyz"]
@@ -115,7 +115,7 @@ for j in 1:n_experiments
115115
#Load atomistic configurations
116116
train_confs = get_confs(train_path, train_inds)
117117
#Adjust reference energies (permanent change)
118-
adjust_energies(train_confs,vref_dict)
118+
adjust_energies(train_confs, vref_dict)
119119
# Compute dataset with energy and force descriptors
120120
train_ds = calc_descr(train_confs, basis_fitting)
121121
# Create result folder
@@ -139,6 +139,8 @@ for j in 1:n_experiments
139139

140140
#Load atomistic configurations
141141
train_confs = get_confs(train_path, train_inds)
142+
#Adjust reference energies (permanent change)
143+
adjust_energies(train_confs, vref_dict)
142144
# Compute dataset with energy and force descriptors
143145
train_ds = calc_descr(train_confs, basis_fitting)
144146
# Create result folder
File renamed without changes.
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ using Unitful
2121
import PotentialLearning.BasisPotential
2222

2323
include("read-element.jl")
24-
include("xyz.jl")
24+
include("read-dataset.jl")
2525
include("macros.jl")
26+
include("fitting-utils.jl")
2627
include("subtract_peratom_e.jl")
27-
include("aux_sample_functions.jl")
2828
#include("samplers.jl")
2929
include("plots.jl")
3030
include("plotmetrics.jl")

0 commit comments

Comments
 (0)