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

compaso: more flexible search for halo cleaning info directory #167

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

lgarrison
Copy link
Member

We have a few different directory layouts for the cleaned halo info relative to the halo catalog directory. We might wish to standardize this at some point, but for the moment it seems best to just add support at the Python wrapper level. This PR ensures support for the following 4 layouts:

cleaning/SimName/z0.000/cleaned_halo_info/cleaned_halo_info_000.asdf
cleaning/small/SmallSimName/z0.000/cleaned_halo_info/cleaned_halo_info_000.asdf
SimName/cleaning/z0.000/cleaned_halo_info/cleaned_halo_info_000.asdf
SimName/cleaning/z0.000/cleaned_halo_info_000.asdf

It probably supports more, since search is flexible about walking up the directory tree until it encounters cleaning, and about whether a cleaned_halo_info dir is required. But these 4 are the canonical layouts that we might see in practice and that are now tested.

@lgarrison lgarrison merged commit db7f1a1 into main Jan 13, 2025
8 checks passed
@lgarrison lgarrison deleted the cleaning-layouts branch January 13, 2025 22:16
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

Successfully merging this pull request may close these issues.

1 participant