Skip to content

Commit

Permalink
Remove check for k_Z in model params (now is always present)
Browse files Browse the repository at this point in the history
  • Loading branch information
kzinovjev committed Oct 22, 2024
1 parent 197b6d4 commit e2f2dbd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 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

0 comments on commit e2f2dbd

Please sign in to comment.