Skip to content

Commit

Permalink
Fix bug for nbfix/chamber in ParmEd v3.4 (#1282)
Browse files Browse the repository at this point in the history
* Fix bug for nbfix/chamber in ParmEd v3.4

* Remove visualization tests
  • Loading branch information
swails committed Jan 17, 2023
1 parent 1742bae commit d0fa4b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 57 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/Test.yaml
Expand Up @@ -28,6 +28,8 @@ jobs:
python-version: ${{ matrix.python-version }}
environment-file: devtools/environment-dev.yaml
activate-environment: parmed-dev
channels: conda-forge,bioconda
# mamba-version: "*"

- name: Environment Information
shell: bash -l {0}
Expand Down
4 changes: 2 additions & 2 deletions parmed/amber/_chamberparm.py
Expand Up @@ -579,10 +579,10 @@ def _set_nonbonded_tables(self, nbfixes=None):
for i, fix in enumerate(nbfixes):
for terms in fix:
j, rmin, eps, rmin14, eps14 = terms
i, j = min(i, j-1), max(i, j-1)
k, l = min(i, j-1), max(i, j-1)
eps = abs(eps)
eps14 = abs(eps14)
idx = data['NONBONDED_PARM_INDEX'][ntypes*i+j] - 1
idx = data['NONBONDED_PARM_INDEX'][ntypes*k+l] - 1
data['LENNARD_JONES_ACOEF'][idx] = eps * rmin**12
data['LENNARD_JONES_BCOEF'][idx] = 2 * eps * rmin**6
data['LENNARD_JONES_14_ACOEF'][idx] = eps14 * rmin14**12
Expand Down
55 changes: 0 additions & 55 deletions test/test_parmed_visualization.py

This file was deleted.

0 comments on commit d0fa4b6

Please sign in to comment.