Skip to content

Commit

Permalink
last fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
loriab committed May 5, 2024
1 parent 4bfade3 commit a950d6a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,10 @@ jobs:
- name: PyTest
run: |
pytest -rws -v ${{ matrix.cfg.pytest }} --cov=qcengine --color=yes --cov-report=xml qcengine/
pytest -rws -v ${{ matrix.cfg.pytest }} \
--cov=qcengine --cov-report=xml \
--color=yes --durations 50 --durations-min 20 \
qcengine/
- name: CodeCov
uses: codecov/codecov-action@v3
Expand Down
2 changes: 1 addition & 1 deletion devtools/conda-envs/opt-disp-cf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- conda-forge
- nodefaults
dependencies:
- psi4
- psi4=1.9.1
- rdkit
- mopac

Expand Down
5 changes: 3 additions & 2 deletions qcengine/tests/test_mbe_ne2.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def test_optimization_qcmanybody(optimizer, bsse_type):
"trajectory": "initial_and_final",
},
}
opt_data = GeneralizedOptimizationInput(**opt_data)
# opt_data = GeneralizedOptimizationInput(**opt_data)

ret = qcng.compute_procedure(opt_data, optimizer, raise_error=True)
import pprint

Check notice

Code scanning / CodeQL

Module is imported more than once Note test

This import of module pprint is redundant, as it was previously imported
on line 1
.
Expand All @@ -221,4 +221,5 @@ def test_optimization_qcmanybody(optimizer, bsse_type):
"cp": 2.27 / constants.bohr2angstroms,
}
r_fh_computed = ret.final_molecule.measure([1, 3])
assert pytest.approx(r_fh_computed, 1.0e-2) == r_fh_hb[bsse_type]
assert pytest.approx(r_fh_computed, 1.0e-2) == r_fh_hb[bsse_type], f"hydrogen bond length computed ({r_fh_computed}) != expected ({r_fh_hb[bsse_type]})"
assert len(ret.trajectory) == 2, f"trajectory protocol did not take. {len(ret.trajectory)=} != 2 (initial_and_final)"

0 comments on commit a950d6a

Please sign in to comment.