Skip to content

Commit

Permalink
Updates for consistency to the main repo
Browse files Browse the repository at this point in the history
  • Loading branch information
janash committed May 15, 2024
1 parent 1df6678 commit f66ed51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions energy_calculations.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ These XYZ files come from a [database of water cluster minima](https://sites.uw.

## Energy Calculation and Benchmarking Script

Open the script `xyz/energy_calculations.py` to see the starting code for this section.
Open the script `energy/energy_calculations.py` to see the starting code for this section.
The starting code includes functions for caluculating the energy of a system using ANI and Psi4.

:::{tab-set}

````{tab-item} xyz/energy_calculations.py
```python
"""
Retrieve xyz from a URL and calculate the energy using ANI
Calculate energies using Psi4 and ANI2x for water clusters.
"""

import glob
Expand Down Expand Up @@ -142,7 +142,7 @@ def calculate_Psi4_energy(xyz_file, name=None):

if __name__ == "__main__":

xyz_files = glob.glob("scaling/*.xyz")
xyz_files = glob.glob("xyz/scaling/*.xyz")

energies = []
times = []
Expand Down Expand Up @@ -205,6 +205,7 @@ if __name__ == "__main__":
plt.legend()

plt.savefig("timing.png")

```
````
:::
Expand All @@ -226,7 +227,7 @@ Next, `cd` to the `xyz` directory and run the script.

````{tab-item} bash
```bash
cd xyz
cd energy
python energy_calculations.py
```
````
Expand Down
1 change: 1 addition & 0 deletions mdimechanic.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ docker:
- /root/psi4conda/bin/pip install torch --index-url https://download.pytorch.org/whl/cpu
- /root/psi4conda/bin/pip install torchani
- /root/psi4conda/bin/pip install matplotlib
- /root/psi4conda/bin/pip install tabulate
- /root/psi4conda/bin/pip cache purge
```
Expand Down

0 comments on commit f66ed51

Please sign in to comment.