Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/multiego/pairs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from . import bonded, type_definitions
from . import bonded, type_definitions, interaction_matrix
from .model_config import config

from collections import defaultdict, deque
Expand Down Expand Up @@ -128,8 +128,8 @@
ti = meGO_ensemble.sbtype_type_dict[ai]
tj = meGO_ensemble.sbtype_type_dict[aj]

if (ti == "H" and tj not in type_definitions.H_ALLOWED_PARTNERS) or (
tj == "H" and ti not in type_definitions.H_ALLOWED_PARTNERS
if (ti == "H" and tj not in interaction_matrix.H_interactions) or (
tj == "H" and ti not in interaction_matrix.H_interactions
):
continue

Expand Down
2 changes: 1 addition & 1 deletion src/multiego/type_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@

# Atom types allowed to pair with H in nth-bond repulsions.
# H-X pairs where X is NOT in this set are skipped entirely.
H_ALLOWED_PARTNERS = {"H", "O", "OM", "OA"}
# H_ALLOWED_PARTNERS = H_interactions#{"H", "O", "OM", "OA", "OS"}

# Data-driven c12 overrides for nth-bond repulsive pairs (egos == "mg").
# Each entry: (types_ai, types_aj, c12_value)
Expand Down
Loading