Skip to content

Commit

Permalink
Fix bug reported by Alex Sodt (#1281)
Browse files Browse the repository at this point in the history
* Fix bug reported by Alex Sodt

* Turn off mamba since it's glitchy right now
  • Loading branch information
swails committed Jan 17, 2023
1 parent 81ed5c3 commit 49961ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
environment-file: devtools/environment-dev.yaml
activate-environment: parmed-dev
channels: conda-forge,bioconda
mamba-version: "*"
# mamba-version: "*"

- name: Environment Information
shell: bash -l {0}
Expand Down
4 changes: 2 additions & 2 deletions parmed/amber/_chamberparm.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,10 +559,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

0 comments on commit 49961ac

Please sign in to comment.