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

Concatenate multi-file snapshots? #110

Open
kyleaoman opened this issue Feb 22, 2022 · 1 comment
Open

Concatenate multi-file snapshots? #110

kyleaoman opened this issue Feb 22, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@kyleaoman
Copy link
Member

Would it make sense to support multi-file snapshots (snap.0.hdf5; snap.1.hdf5; ...) so that they can be accessed by a single SWIFTDataset that simply concatenates the arrays from each part? In other words, the user shouldn't need to know that there's more than one file. I have a bit of code that I used on EAGLE-like snapshots. I don't think I'd suggest using it as-is, but could serve as inspiration? https://github.com/kyleaoman/simfiles/blob/master/simfiles/_hdf5_io.py

@MatthieuSchaller
Copy link
Member

SWIFT now outputs a meta-snapshot that can be used to read the distributed snapshots. SWIFTsimio can make use of that.

(Unfortunately sibelius was run before this feature was added)

However, that is still not going to be super efficient if you want to read the whole file. There is no parallel-reading feature.
But if you just want a single region then it works very well.

@MatthieuSchaller MatthieuSchaller added the enhancement New feature or request label Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants