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 #269 #271

Merged
merged 1 commit into from
Jan 7, 2025
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
15 changes: 1 addition & 14 deletions src/sire/qm/_emle.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,23 +225,10 @@ def emle(

# Create an engine from an EMLE calculator.
if isinstance(calculator, _EMLECalculator):
# Determine the callback name. Use an optimised version of the callback
# if the user has specified "torchani" as the backend and is using
# "electrostatic" embedding.
if calculator._backend == "torchani" and calculator._method == "electrostatic":
try:
from emle.models import ANI2xEMLE as _ANI2xEMLE

callback = "_sire_callback_optimised"
except:
callback = "_sire_callback"
else:
callback = "_sire_callback"

# Create the EMLE engine.
engine = EMLEEngine(
calculator,
callback,
"_sire_callback",
cutoff,
neighbour_list_frequency,
False,
Expand Down
Loading