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

adding release filter for queries using the mjd cutoffs #72

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

havok2063
Copy link
Contributor

This PR closes #49. It adds a filter to the append_pipes method that filters down results based on the data release and the MJD cutoff for the given observatory.

For releases less than DR17, we don't have a cutoff implemented yet, as these are different for different surveys. See #71. For all releases < DR17, it uses a MJD cutoff of 0 to effectively null the results, until we can properly support legacy data.

@havok2063 havok2063 added the enhancement New feature or request label Dec 9, 2024
@havok2063 havok2063 requested a review from albireox December 9, 2024 01:38
@havok2063 havok2063 self-assigned this Dec 9, 2024
Copy link
Member

@albireox albireox 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 good. The only thing I can think of is what happens for targets that have been observed both from APO and LCO. There are some of those and they should have the same sdss_id. But it's probably a very minor caveat.

@havok2063
Copy link
Contributor Author

Hmm, do you have an example sdss_id that has been observed in both? I can see how it looks in the astra db.

@albireox
Copy link
Member

albireox commented Dec 9, 2024

On second thought and after discussing it, this all looks good.

@havok2063 havok2063 merged commit dbf2ad5 into main Dec 9, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

update the database queries for release data with MJD cutoffs
2 participants