Skip to content

Commit

Permalink
Correct assignment of head
Browse files Browse the repository at this point in the history
  • Loading branch information
beckobert committed Dec 20, 2024
1 parent 9600ba2 commit 157c7b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mace/data/hdf5_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ def __getitem__(self, index):
pbc=unpack_value(subgrp["pbc"][()]),
cell=unpack_value(subgrp["cell"][()]),
)
if config.head is None:
config.head = self.kwargs.get("head")
config.head = self.kwargs.get("head", "Default")
atomic_data = AtomicData.from_config(
config,
z_table=self.z_table,
Expand Down

0 comments on commit 157c7b3

Please sign in to comment.