Skip to content

Commit

Permalink
Add ORCA and PySCF tests ti CI
Browse files Browse the repository at this point in the history
  • Loading branch information
q-posev authored Sep 25, 2023
1 parent 1296e1c commit 7e56370
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@ jobs:
trexio convert-from -t pyscf -i data/water.chk -b hdf5 trexio_pyscf_w.h5
trexio convert-from -t pyscf -i data/diamond_single_k.chk -b hdf5 trexio_pyscf_1k.h5
trexio convert-from -t pyscf -i data/diamond_k_grid.chk -b hdf5 trexio_pyscf_Nk.h5
trexio convert-from -t orca -i data/h2o.json -b hdf5 trexio_h2o_orca.h5
# benchmark the MOs by computing numerically integrals on a grid and comparing with the ref values from the file
trexio check-mos -n 50 trexio_gamess.h5 > mos-res
grep "Norm of the error" < mos-res | grep -Eo "([0-9]+\.[0-9]*|\.?[0-9]+)([eE][+-][0-9]+)?" > error-res
python -c 'with open("error-res") as f: error = f.readline().strip(); assert float(error) < 1.0'
# benchmark the MOs by computing numerically integrals on a grid and comparing with the ref values from the file
trexio check-mos -n 50 trexio_pyscf_w.h5 > mos-res
grep "Norm of the error" < mos-res | grep -Eo "([0-9]+\.[0-9]*|\.?[0-9]+)([eE][+-][0-9]+)?" > error-res
python -c 'with open("error-res") as f: error = f.readline().strip(); assert float(error) < 1.0'
# benchmark helper converters
trexio convert-to -t molden -o trexio_molden.h5 trexio_gamess.h5

0 comments on commit 7e56370

Please sign in to comment.