Skip to content

Commit

Permalink
Lower error threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
q-posev authored Nov 27, 2024
1 parent fe74577 commit 814d65c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,18 @@ jobs:
echo "=== Check TREXIO file converted from GAMESS ==="
trexio check-mos -n 100 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) < 0.01'
cat error-res
python -c 'with open("error-res") as f: error = f.readline().strip(); assert float(error) < 0.1'
echo "=== Check TREXIO file converted from PySCF ==="
trexio check-mos -n 100 trexio_pyscf_h2o.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) < 0.01'
cat error-res
python -c 'with open("error-res") as f: error = f.readline().strip(); assert float(error) < 0.1'
echo "=== Check TREXIO file converted from ORCA ==="
trexio check-mos -n 100 trexio_orca_h2o.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) < 0.01'
cat error-res
python -c 'with open("error-res") as f: error = f.readline().strip(); assert float(error) < 0.1'
# benchmark helper converters
trexio convert-to -t molden -o trexio_molden.h5 trexio_gamess.h5
echo "=== Check normalization in spherical file ==="
Expand Down

0 comments on commit 814d65c

Please sign in to comment.