Skip to content

Commit

Permalink
Snapshot check should only be performed if OpenPMD is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomDefaultUser committed Nov 21, 2024
1 parent 4697216 commit 3d4ee9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mala/datahandling/data_shuffler.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def shuffle_snapshots(
number_of_shuffled_snapshots = self.nr_snapshots

# Currently, the openPMD interface is not feature-complete.
if np.any(
if snapshot_type == "openpmd" and np.any(
np.array(
[
snapshot.grid_dimension[0] % number_of_shuffled_snapshots
Expand Down

0 comments on commit 3d4ee9e

Please sign in to comment.