1- import logging
21from pathlib import Path
32
43import numpy as np
5- import requests
64from ase .build import bulk , make_supercell
75
86import psiflow
97from psiflow .committee import Committee
10- from psiflow .data import Dataset , FlowAtoms
11- from psiflow .learning import CommitteeLearning , SequentialLearning , load_learning
8+ from psiflow .data import Dataset
9+ from psiflow .learning import CommitteeLearning , SequentialLearning
1210from psiflow .metrics import Metrics
1311from psiflow .models import MACEConfig , MACEModel
1412from psiflow .reference import EMTReference
15- from psiflow .state import load_state
16- from psiflow .walkers import DynamicWalker , PlumedBias
13+ from psiflow .walkers import DynamicWalker
1714
1815
1916def main (path_output ):
@@ -22,7 +19,7 @@ def main(path_output):
2219 path_committee = path_output / "learn_committee"
2320 path_committee .mkdir (parents = True )
2421
25- reference = EMTReference () # CP2K; PBE-D3(BJ); TZVP
22+ reference = EMTReference ()
2623 atoms = make_supercell (bulk ("Cu" , "fcc" , a = 3.6 , cubic = True ), 3 * np .eye (3 ))
2724
2825 config = MACEConfig ()
@@ -56,7 +53,7 @@ def main(path_output):
5653 step = 40 ,
5754 start = 0 ,
5855 temperature = 100 ,
59- temperature_threshold = 300 , # reset if T > T_0 + 300 K
56+ max_excess_temperature = 300 , # reset if T > T_0 + 300 K
6057 pressure = 0 ,
6158 )
6259 data = learning .run (
@@ -90,3 +87,4 @@ def main(path_output):
9087 psiflow .load ()
9188 path_output = Path .cwd () / "output" # stores learning results
9289 main (path_output )
90+ psiflow .wait ()
0 commit comments