-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Updated RandomShadow #2261
Updated RandomShadow #2261
Conversation
Reviewer's Guide by SourceryThis pull request removes the deprecated Class diagram showing changes to RandomShadow transformclassDiagram
class InitSchema {
+shadow_roi: tuple[float, float, float, float]
+num_shadows_limit: tuple[int, int]
-num_shadows_lower: int [REMOVED]
-num_shadows_upper: int [REMOVED]
+shadow_dimension: int
+shadow_intensity_range: tuple[float, float]
+validate_shadows()
}
note for InitSchema "Removed deprecated parameters
now using num_shadows_limit only"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @ternaus - I've reviewed your changes - here's some feedback:
Overall Comments:
- The removal of shadow_intensity_range validation code needs justification. This validation was ensuring values stayed within [0,1] range and checking types. Has this validation been moved elsewhere, or how are these constraints now being enforced?
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2261 +/- ##
=========================================
+ Coverage 0 89.86% +89.86%
=========================================
Files 0 50 +50
Lines 0 8876 +8876
=========================================
+ Hits 0 7976 +7976
- Misses 0 900 +900
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Summary by Sourcery
Remove deprecated
num_shadows_lower
andnum_shadows_upper
parameters fromRandomShadow
transform and update tests accordingly.Enhancements:
num_shadows_lower
andnum_shadows_upper
withnum_shadows_limit
.Tests: