Skip to content

Commit

Permalink
update test settings and flake compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebystrom committed Jun 20, 2024
1 parent 0971580 commit 3e20063
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/full_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies:
- numpy>=1.20.3,<1.25
- pyscf>=2.1
- pytest
- pytorch
- pyyaml
- scikit-learn>=1.0.1
- scipy>=1.7.1
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nocomp_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies:
- numpy>=1.20.3,<1.25
- pyscf>=2.1
- pytest
- pytorch
- pyyaml
- scikit-learn>=1.0.1
- scipy>=1.7.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run_mpi_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export PYTHONPATH=$(pwd):$PYTHONPATH
ulimit -s 20000

version=$(python -c 'import sys; print("{0}.{1}".format(*sys.version_info[:2]))')
mpirun -np 2 pytest ciderpress/gpaw -s -c pytest_mpi.ini ciderpress
mpirun -np 2 --oversubscribe pytest ciderpress/gpaw -s -c pytest_mpi.ini ciderpress
16 changes: 8 additions & 8 deletions ciderpress/pyscf/tests/test_nldf.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,15 @@ def _check_nldf_equivalence(
else:
l1k = _ifeat[:, n0 + 3 * k : n0 + 3 * k + 3]
ifeat[:, n0 + i] = np.einsum("sxg,sxg->sg", l1j, l1k)
ijfeat = np.append(jfeat, ifeat, axis=1)
# ijfeat = np.append(jfeat, ifeat, axis=1)

ifeat_pred = get_descriptors(
analyzer,
self.vi_settings,
plan_type=plan_type,
aux_lambd=lambd,
aug_beta=beta,
)
# ifeat_pred = get_descriptors(
# analyzer,
# self.vi_settings,
# plan_type=plan_type,
# aux_lambd=lambd,
# aug_beta=beta,
# )
# TODO uncomment after fixing vi stability
# import traceback as tb
# errs = {}
Expand Down

0 comments on commit 3e20063

Please sign in to comment.