Skip to content

Commit

Permalink
Merge pull request #601 from RandomDefaultUser/fix_openpmd_lazyloading
Browse files Browse the repository at this point in the history
Fix: Resetting the voxel to None is necessary in a shuffled/unshuffled laz…
  • Loading branch information
RandomDefaultUser authored Oct 29, 2024
2 parents cb47e22 + 19ffa6a commit 27dec15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mala/targets/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,8 @@ def _process_geometry_info(self, mesh):
if "angles" in mesh.attributes:
angles = mesh.get_attribute("angles")
self.voxel = ase.cell.Cell.new(cell=spacing + angles)
else:
self.voxel = None

def _get_atoms(self):
return self.atoms
Expand Down

0 comments on commit 27dec15

Please sign in to comment.