Skip to content

Commit

Permalink
Revert #292 (#293)
Browse files Browse the repository at this point in the history
Thanks Peter.
  • Loading branch information
peastman authored Feb 26, 2024
1 parent ea8664f commit 0be16db
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions torchmdnet/datasets/hdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,9 @@ def __init__(self, filename, dataset_preload_limit=1024, **kwargs):
self.fields.append(("y", "energy", torch.float32))
if "forces" in group:
self.fields.append(("neg_dy", "forces", torch.float32))
if "charge" in group:
self.fields.append(("q", "charge", torch.float32))
if "spin" in group:
self.fields.append(("s", "spin", torch.float32))
if "partial_charges" in group:
self.fields.append(
("pq", "partial_charges", torch.float32)
("partial_charges", "partial_charges", torch.float32)
)
assert ("energy" in group) or (
"forces" in group
Expand Down

0 comments on commit 0be16db

Please sign in to comment.