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

Re-jig BCCs to be more specific #131

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft
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
16 changes: 5 additions & 11 deletions openff/recharge/charges/bcc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Generate bond charge corrections for molecules from a collection of BCC parameters."""
import json
import os
from typing import TYPE_CHECKING, Any, Dict, List, Optional

Expand Down Expand Up @@ -454,19 +453,14 @@ def original_am1bcc_corrections() -> BCCCollection:
23(16), 1623–1641.
"""
bcc_file_path = get_data_file_path(
os.path.join("bcc", "original-am1-bcc.json"), "openff.recharge"
os.path.join("bcc", "openeye-am1-bcc.json"), "openff.recharge"
)

with open(bcc_file_path) as file:
bcc_dictionaries = json.load(file)

bond_charge_corrections = [
BCCParameter(**dictionary) for dictionary in bcc_dictionaries
]

return BCCCollection(
parameters=bond_charge_corrections, aromaticity_model=AromaticityModels.AM1BCC
collection = BCCCollection.parse_file(
bcc_file_path
)
collection.aromaticity_model = AromaticityModels.AM1BCC
return collection


def compare_openeye_parity(molecule: "Molecule") -> bool:
Expand Down
Loading