Skip to content

Commit e85e810

Browse files
committed
Do not train hyperparameters if no DFT was done
1 parent 511a479 commit e85e810

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

Examples/sscha_and_aiida/run_aiida_flare_sscha.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def main():
2828
number_of_configurations = 50
2929
batch_number = 1
3030
check_time = 3
31-
max_iterations = 3
31+
max_iterations = 10
3232
temperature = 0
3333
pressure = 0
3434
meaningful_factor = 0.5

Examples/sscha_and_aiida/run_flare_sscha.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def main():
1818
# =========== GENERAL INPUTS =============== #
1919
np.random.seed(0)
2020
number_of_configurations = 50
21-
max_iterations = 3
21+
max_iterations = 10
2222
temperature_i = 0
2323
temperature_f = 0
2424
temperature_step = 10

Modules/aiida_ensemble.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,9 @@ def compute_ensemble( # pylint: disable=arguments-renamed
170170

171171
# ================ TRAIN SECTION ================ #
172172
if self.gp_model is not None:
173-
self._train_gp()
174-
self._write_model()
173+
if dft_counts > 0:
174+
self._train_gp()
175+
self._write_model()
175176

176177
sys.stdout.flush()
177178

0 commit comments

Comments
 (0)