-
-
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 RandomSunFlare #2260
Updated RandomSunFlare #2260
Conversation
Reviewer's Guide by SourceryThis pull request refactors the Class diagram showing changes to RandomSunFlare classclassDiagram
class RandomSunFlare {
+flare_roi: tuple[float, float, float, float]
+src_radius: int
+src_color: tuple[int, ...]
+angle_range: tuple[float, float]
+num_flare_circles_range: tuple[int, int]
+validate_parameters() Self
+__init__(flare_roi, src_radius, src_color, angle_range, num_flare_circles_range)
}
note for RandomSunFlare "Removed deprecated parameters:
- angle_lower
- angle_upper
- num_flare_circles_lower
- num_flare_circles_upper"
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:
- Consider adding new test cases that verify the current tuple-based parameters (angle_range, num_flare_circles_range) work correctly, even while removing tests for deprecated parameters.
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 #2260 +/- ##
=========================================
+ Coverage 0 89.83% +89.83%
=========================================
Files 0 50 +50
Lines 0 8895 +8895
=========================================
+ Hits 0 7991 +7991
- Misses 0 904 +904
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
angle_lower
,angle_upper
,num_flare_circles_lower
, andnum_flare_circles_upper
parameters fromRandomSunFlare
. Useangle_range
andnum_flare_circles_range
instead.Enhancements:
RandomSunFlare
to use range parameters for angle and number of flare circles.Tests:
RandomSunFlare
parameterization.