Skip to content

Commit

Permalink
Default to combined AEV model.
Browse files Browse the repository at this point in the history
  • Loading branch information
lohedges committed Oct 22, 2024
1 parent 3b4d104 commit 1bc96bf
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions emle/models/_emle.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,8 @@ class EMLE(_torch.nn.Module):
_os.path.dirname(_os.path.abspath(__file__)), "..", "resources"
)

# Create the name of the default model file for each alpha mode.
_default_models = {
"species": _os.path.join(_resource_dir, "emle_qm7_aev_species.mat"),
"reference": _os.path.join(_resource_dir, "emle_qm7_aev_reference.mat"),
}
# Create the name of the default model file.
_default_model = _os.path.join(_resource_dir, "emle_qm7_aev.mat")

# Store the list of supported species.
_species = [1, 6, 7, 8, 16]
Expand Down Expand Up @@ -247,8 +244,8 @@ def __init__(
# Set to None as this will be used in any calculator configuration.
self._model = None

# Choose the model based on the alpha_mode.
model = self._default_models[alpha_mode]
# Use the default model.
model = self._default_model

# Use the default species.
species = self._species
Expand Down

0 comments on commit 1bc96bf

Please sign in to comment.