Skip to content

Commit

Permalink
Merge pull request #271 from OpenBioSim/fix_269
Browse files Browse the repository at this point in the history
Fix #269
  • Loading branch information
lohedges authored Jan 7, 2025
2 parents a1642de + 0aeb6ca commit ecfef72
Showing 1 changed file with 1 addition and 14 deletions.
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

0 comments on commit ecfef72

Please sign in to comment.