Skip to content

Commit

Permalink
Pin the last error thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
q-posev authored Nov 27, 2024
1 parent a9fd0fb commit 8537980
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
trexio convert-to -t cartesian -o trexio_pyscf_h2o.h5 trexio_pyscf_h2o_sph.h5
echo "== Done conversion =="
echo "=== Check TREXIO file converted from GAMESS ==="
trexio check-mos -n 100 trexio_gamess.h5 > mos-res
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
cat error-res
python -c 'with open("error-res") as f: error = f.readline().strip(); assert float(error) < 0.11'
Expand All @@ -65,10 +65,10 @@ jobs:
trexio check-mos -n 100 data/methane_sphe.hdf5 > mos-res
grep "Norm of the error" < mos-res | grep -Eo "([0-9]+\.[0-9]*|\.?[0-9]+)([eE][+-][0-9]+)?" > error-res
cat error-res
python -c 'with open("error-res") as f: error = f.readline().strip(); assert float(error) < 0.01'
python -c 'with open("error-res") as f: error = f.readline().strip(); assert float(error) < 0.0017'
echo "=== Check normalization after transformation into cartesian file ==="
trexio convert-to -t cartesian data/methane_sphe.hdf5 -o methane_cart.hdf5
trexio check-mos -n 100 methane_cart.hdf5 > mos-res
grep "Norm of the error" < mos-res | grep -Eo "([0-9]+\.[0-9]*|\.?[0-9]+)([eE][+-][0-9]+)?" > error-res
cat error-res
python -c 'with open("error-res") as f: error = f.readline().strip(); assert float(error) < 0.01'
python -c 'with open("error-res") as f: error = f.readline().strip(); assert float(error) < 0.0017'

0 comments on commit 8537980

Please sign in to comment.