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 chunkwise to PS and CS API #372

Open
Helveg opened this issue Feb 17, 2022 · 0 comments
Open

Add chunkwise to PS and CS API #372

Helveg opened this issue Feb 17, 2022 · 0 comments

Comments

@Helveg
Copy link
Contributor

Helveg commented Feb 17, 2022

Users will probably often have to read out large quantities of data, too large to fit into memory at the same time (eg postprocessing, streaming to simulation backends, ...). To facilitate this, we could add a .chunkwise() method:

for ps in master_ps.chunkwise():
  # Do what you need with the set
  block_of_positions = ps.load_positions()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant