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

Hotfix in BCC parametrization #73

Merged
merged 20 commits into from
Nov 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dmff/generators/classical.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from collections import defaultdict
from typing import Dict
from copy import deepcopy
import warnings

import numpy as np
import jax.numpy as jnp
Expand Down Expand Up @@ -755,7 +755,7 @@ def addVsiteFunc(pos, params):
self.top_mat[query2[0], nnode] += 1
self.top_mat[query2[1], nnode] -= 1
else:
raise DMFFException(
warnings.warn(
f"No BCC parameter for bond between Atom{beginAtomIdx} and Atom{endAtomIdx}"
)
else:
Expand Down Expand Up @@ -1191,4 +1191,4 @@ def getJaxPotential(self):
return self._jaxPotential


dmff.api.jaxGenerators["LennardJonesForce"] = LennardJonesGenerator
dmff.api.jaxGenerators["LennardJonesForce"] = LennardJonesGenerator