-
Notifications
You must be signed in to change notification settings - Fork 7
Inserting new parameter in concatenation function to allow for ignoring empty margins. #1038
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
Inserting new parameter in concatenation function to allow for ignoring empty margins. #1038
Conversation
…ng empty margins.
@smcguire-cmu @camposandro My dear reviewers, in addition to the functionality itself, I changed pyproject.toml to avoid failure in the pre-commit command (SKIP=sphinx-build,pytest-check pre-commit run --all-files), but I don't know if I can change this, or if I changed it correctly, so if anything we revert it. |
Some benchmarks failed or their performance regressed significantly. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1038 +/- ##
==========================================
+ Coverage 97.19% 97.22% +0.02%
==========================================
Files 46 46
Lines 2638 2666 +28
==========================================
+ Hits 2564 2592 +28
Misses 74 74 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…ng-ignore-empty-margin
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 for your work again, this looks good! Just a few comments
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.
Looks good! Thanks for your work!
Some benchmarks failed or their performance regressed significantly. |
In cases where we try to generate the margin cache and it fails because it contains no points, it's safe to ignore the fact that it has no margin when concatenating this catalog with another later, rather than discarding both margins. A new Boolean parameter in the concatenation function, followed by a warning about the possibility of incompleteness in the final catalog's margin cache if not used carefully, solves this use case.