Skip to content

Commit

Permalink
fix: missing max_neighbors in shortcut periodic calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
laserkelvin committed Nov 18, 2024
1 parent 64e225d commit 1d219c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion matsciml/datasets/transforms/pbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ def __call__(self, data: DataDict) -> DataDict:
structure = data["structure"]
if isinstance(structure, Structure):
graph_props = calculate_periodic_shifts(
structure, self.cutoff_radius, self.adaptive_cutoff
structure,
self.cutoff_radius,
self.adaptive_cutoff,
max_neighbors=self.max_neighbors,
)
data.update(graph_props)
return data
Expand Down

0 comments on commit 1d219c3

Please sign in to comment.