Skip to content

Commit

Permalink
Remove dependency on ase in MACEOFF
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulPPelaez committed Aug 28, 2024
1 parent 8a7b520 commit f6c0c16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchmdnet/datasets/maceoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# (See accompanying file README.md file or copy at http://opensource.org/licenses/MIT)

import hashlib
from ase.data import atomic_numbers
from torchmdnet.utils import ATOMIC_NUMBERS
import numpy as np
import os
import torch as pt
Expand Down Expand Up @@ -44,7 +44,7 @@ def parse_maceoff_tar(tar_file):
counter = 2
continue
el, x, y, z, fx, fy, fz, _, _, _ = line.split()
numbers.append(atomic_numbers[el])
numbers.append(ATOMIC_NUMBERS[el])
positions.append([float(x), float(y), float(z)])
forces.append([float(fx), float(fy), float(fz)])
counter += 1
Expand Down

0 comments on commit f6c0c16

Please sign in to comment.