Skip to content

Commit

Permalink
Fixing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
scemama committed Nov 27, 2024
1 parent 4fb35af commit 4db4fc2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ jobs:
# benchmark helper converters
trexio convert-to -t molden -o trexio_molden.h5 trexio_gamess.h5
echo "=== Check normalization in spherical file ==="
E=$(trexio check-mos methane_sphe.hdf5 | tail -1 |cut -d ':' -f 2 | xargs) ; echo "if ($E > 0.01): exit(1)" | python3 # Exit code is 0 if <i|j> = delta_ij, and 1 otherwise
trexio check-mos methane_sphe.hdf5 | tail -1 |cut -d ':' -f 2 > error-res
python -c 'with open("error-res") as f: error = f.readline().strip(); assert float(error) < 0.01'
echo "=== Check normalization after transformation into cartesian file ==="
trexio convert-to -t cartesian methane_sphe.hdf5 -o methane_cart.hdf5
E=$(trexio check-mos methane_cart.hdf5 | tail -1 |cut -d ':' -f 2 | xargs) ; echo "if ($E > 0.01): exit(1)" | python3 # Exit code is 0 if <i|j> = delta_ij, and 1 otherwise
trexio check-mos methane_cart.hdf5 | tail -1 |cut -d ':' -f 2 > error-res
python -c 'with open("error-res") as f: error = f.readline().strip(); assert float(error) < 0.01'

0 comments on commit 4db4fc2

Please sign in to comment.