-
Notifications
You must be signed in to change notification settings - Fork 28
Add proper error message for missing dims in Patch.transpose #573
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
Conversation
WalkthroughAdds dimension validation to Patch.transpose in dascore/proc/coords.py, filtering ellipsis and raising ParameterError for invalid dims. Test suite updated: removes an old basic transpose test and adds extensive transpose tests covering invalid dims, permutations, ellipsis handling, and data integrity. Changes
Possibly related issues
Suggested labels
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
🧰 Additional context used🧬 Code graph analysis (2)dascore/proc/coords.py (2)
tests/test_proc/test_proc_coords.py (3)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (18)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #573 +/- ##
=======================================
Coverage 99.92% 99.92%
=======================================
Files 128 128
Lines 10767 10773 +6
=======================================
+ Hits 10759 10765 +6
Misses 8 8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
CodSpeed Performance ReportMerging #573 will not alter performanceComparing Summary
|
Description
This PR adds an error message to
Patch.transposeraised when one of the dimensions is not found in the patch. It also improves the testing of the transpose function.closes #570.
Checklist
I have (if applicable):
Summary by CodeRabbit
Bug Fixes
Tests