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

work around for object types that don't have files for healpixels that have files for other object types #75

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

jchiang87
Copy link
Collaborator

This is causing a problem when we use the SNANA test files + galaxy + star healpix files where files for some healpixels exist for the latter two, but not for the SNANA data. I've run into the same problem when I don't have the exact same set of hps for galaxies and point sources.

Copy link
Collaborator

@JoanneBogart JoanneBogart left a comment

Choose a reason for hiding this comment

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

This looks ok as a quick fix.
Ultimately something should be done about the elif block as well, but probably the right thing there is to eliminate it, after first replacing object_type with its parent if it has one at the beginning of the routine. In practice I doubt that block is ever executed. This can wait for another PR.

@jchiang87 jchiang87 merged commit 33954cf into main Oct 16, 2023
1 check passed
@jchiang87 jchiang87 deleted the u/jchiang/file_list_fix_get_object_type_by_hp branch October 16, 2023 21:53
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.

2 participants