Skip to content

Commit

Permalink
Update atomic_data.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyes319 committed Apr 30, 2024
1 parent b2fb458 commit d690063
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mace/data/atomic_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ def from_config(
try:
head = torch.tensor(heads.index(config.head), dtype=torch.long)
except:
print(f"head {config.head} not found in {heads}")
head = torch.tensor(0, dtype=torch.long)
head = torch.tensor(len(heads) - 1, dtype=torch.long)

cell = (
torch.tensor(config.cell, dtype=torch.get_default_dtype())
Expand Down

0 comments on commit d690063

Please sign in to comment.