Skip to content
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