Skip to content

Commit

Permalink
Move EMLECalculator class into calculator.py module.
Browse files Browse the repository at this point in the history
  • Loading branch information
lohedges committed Jan 11, 2024
1 parent b559514 commit 36fd7d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include mlmm/*.mat
include emle/*.mat
8 changes: 4 additions & 4 deletions bin/emle-server
Original file line number Diff line number Diff line change
Expand Up @@ -518,11 +518,11 @@ except:
# Import the EMLE calculator here so that we avoid the import overhead when the
# script is called to check if an existing server is running, e.g. when called
# as a background process by the orca executable.
from emle.emle import EMLECalculator
from emle.calculator import EMLECalculator

# Initialise the EMLE calculator.
print("Initialising EMLE calculator...")
mle_calculator = EMLECalculator(**args)
emle_calculator = EMLECalculator(**args)

while True:
print("Waiting for a connection...")
Expand All @@ -535,7 +535,7 @@ while True:
# Try to run the EMLE calculation.
print("Running EMLE calculation...")
try:
mle_calculator.run(path=path)
emle_calculator.run(path=path)
msg = "7:emlefin"
print("Finished!")
except Exception as e:
Expand All @@ -549,7 +549,7 @@ while True:
# Try to update the interpolation lambda parameter.
print("Updating interpolation lambda...")
try:
mle_calculator.set_lambda_interpolate(float(path))
emle_calculator.set_lambda_interpolate(float(path))
msg = "13:emlelambdaset"
print("Lambda set!")
except Exception as e:
Expand Down
File renamed without changes.

0 comments on commit 36fd7d2

Please sign in to comment.