Skip to content

Commit

Permalink
Merge pull request #30 from kzinovjev/emle-train
Browse files Browse the repository at this point in the history
Provide species list in model file
  • Loading branch information
lohedges authored Oct 23, 2024
2 parents 760ac56 + e2f2dbd commit 7e54719
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions emle/models/_emle.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,7 @@ def __init__(
"ref_values_chi": _torch.tensor(
params["chi_ref"], dtype=dtype, device=device
),
"k_Z": (
_torch.tensor(params["k_Z"], dtype=dtype, device=device)
if "k_Z" in params
else None
),
"k_Z": _torch.tensor(params["k_Z"], dtype=dtype, device=device),
"sqrtk_ref": (
_torch.tensor(params["sqrtk_ref"], dtype=dtype, device=device)
if "sqrtk_ref" in params
Expand Down Expand Up @@ -348,7 +344,7 @@ def __init__(
aev_computer=self._aev_computer,
aev_mask=aev_mask,
alpha_mode=self._alpha_mode,
species=self._species,
species=params.get("species", self._species),
device=device,
dtype=dtype,
)
Expand Down

0 comments on commit 7e54719

Please sign in to comment.