Skip to content

Commit f6c0c16

Browse files
committed
Remove dependency on ase in MACEOFF
1 parent 8a7b520 commit f6c0c16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchmdnet/datasets/maceoff.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# (See accompanying file README.md file or copy at http://opensource.org/licenses/MIT)
44

55
import hashlib
6-
from ase.data import atomic_numbers
6+
from torchmdnet.utils import ATOMIC_NUMBERS
77
import numpy as np
88
import os
99
import torch as pt
@@ -44,7 +44,7 @@ def parse_maceoff_tar(tar_file):
4444
counter = 2
4545
continue
4646
el, x, y, z, fx, fy, fz, _, _, _ = line.split()
47-
numbers.append(atomic_numbers[el])
47+
numbers.append(ATOMIC_NUMBERS[el])
4848
positions.append([float(x), float(y), float(z)])
4949
forces.append([float(fx), float(fy), float(fz)])
5050
counter += 1

0 commit comments

Comments
 (0)