Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug reported by Alex Sodt #1281

Merged
merged 2 commits into from
Jan 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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