Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add arbitrary shuffling for openPMD input #622

Conversation

franzpoeschel
Copy link
Contributor

@franzpoeschel franzpoeschel commented Dec 5, 2024

Shuffling openPMD data so far worked only if the number of output snapshots cleanly divides the first dimension of the input data. This PR overcomes that restriction.

TODO:

  • Document the code better, some of the indexing is non-trivial

Copy link
Member

@RandomDefaultUser RandomDefaultUser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! There is one small caveat, which I think is inconsequential: The shuffled snapshots in the arbitrary mode are not identical for numpy and openpmd. I think that does not matter much, since we only care about randomizing data, not having the exact same randomization. But I wanted to mention it to document it for future reference.

@RandomDefaultUser RandomDefaultUser merged commit 74b56f5 into mala-project:develop Dec 6, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement all the shuffling interface changes for OpenPMD as well
2 participants