-
Notifications
You must be signed in to change notification settings - Fork 6
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
Support Npix partitions with a different file suffix or that are directories #458
Support Npix partitions with a different file suffix or that are directories #458
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #458 +/- ##
==========================================
- Coverage 93.21% 93.15% -0.07%
==========================================
Files 47 47
Lines 2033 2044 +11
==========================================
+ Hits 1895 1904 +9
- Misses 138 140 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Click here to view all benchmarks. |
@delucchi-cmu will you tag in any other folks who's review will be helpful here? I have not added any new unit tests, so only the standard, single-file Npix partitions with a '.parquet' suffix are currently covered. I can add a new test dataset(s) and unit test(s) if needed, but I'd like to at least get feedback on the implementation before setting all of that up. |
I added unit tests and data in astronomy-commons/lsdb#586 that cover both cases described in the bullet points in the main comment above. I'm not sure how you prefer to handle this... do you want similar tests and data in both repos or do you prefer them in one repo over another? (If it matters, neither PR introduces new code that is not covered by existing tests so the coverage shouldn't change either way, though obviously you'll want new tests somewhere to cover the new functionality.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Troy! This looks good, apart from the issue with the filesystems. Let us know if you'd like to set up some coworking time or a call to try and figure that one out together.
As for unit tests, we generally like to have each package tested independently, so generating the test catalogs in hats
too and testing the extra functionality here would be great.
Ok thanks, I'll add them here.
Ah, right. I tried that a year or two ago and found the same thing -- |
3b3cdca
to
5f20337
Compare
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Added unit tests and data. Rebased onto main and force pushed. I don't know how to test against data over http (see below). Otherwise, everything is complete that I'm aware of. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
5f20337
to
304f679
Compare
Confirmed with @delucchi-cmu on slack to go ahead and merge. I can do a follow-up pr if more is needed. |
This PR proposes to implement support for:
by adding an
npix_suffix
attribute toTableProperties
and using it when constructing the pixel file paths. This attribute would show up in the 'properties' ancillary file as 'hats_npix_suffix'.These changes would be sufficient to address astronomy-commons/lsdb#435 for this repo. Minor changes will be needed in the lsdb repo in order to use this and I will open that PR soon (update: opened astronomy-commons/lsdb#586). I have made all of the changes in my local code clone and they are working for me --
lsdb.read_hats(…)
works with the ZTF DR23 HATS catalogs, which I created with Npix as a directory.I don't know how these changes might affect use with other filesystems (so far I have only tested against data stored on-premise at IRSA) or if they will cause trouble in other hats or lsdb code that I haven't seen yet. So comments and feedback from folks who know more about those areas will be especially helpful.
Change Description
Code Quality
Project-Specific Pull Request Checklists
New Feature Checklist
Documentation Change Checklist