cyrusyc commited on
Commit
22f3e9b
1 Parent(s): 9ba4f3c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -1
README.md CHANGED
@@ -23,19 +23,26 @@ pip install git+https://github.com/ACEsuit/mace.git
23
 
24
  ```python
25
  from mace.calculators import MACECalculator
 
26
  from ase.md.npt import NPT
27
 
 
 
28
  calculator = MACECalculator(
29
  model_paths=/path/to/pretrained.model,
30
  device=device
31
  )
32
 
33
- nvt = NPT(
 
 
34
  atoms=atoms,
35
  timestep=timestep,
36
  temperature_K=temperature,
37
  externalstress=externalstress,
38
  )
 
 
39
  ```
40
 
41
  # Citing
 
23
 
24
  ```python
25
  from mace.calculators import MACECalculator
26
+ from ase import Atoms
27
  from ase.md.npt import NPT
28
 
29
+ atoms = Atoms("NaCl")
30
+
31
  calculator = MACECalculator(
32
  model_paths=/path/to/pretrained.model,
33
  device=device
34
  )
35
 
36
+ atoms.calc = calculator
37
+
38
+ npt = NPT(
39
  atoms=atoms,
40
  timestep=timestep,
41
  temperature_K=temperature,
42
  externalstress=externalstress,
43
  )
44
+
45
+ npt.run(steps)
46
  ```
47
 
48
  # Citing