-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fixed analytics report: working time rounding to minimal 1 hour is not applied to annotation speed anymore #7898
Conversation
WalkthroughThe recent changes focus on fixing an issue with object counts in skeleton analytics and updating annotation speed metrics from total to average across jobs, tasks, and projects. This includes renaming classes, updating descriptions, and adjusting calculation logic to reflect average speeds. Additionally, a redundant function for clamping working time statistics was removed. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 13
Out of diff range and nitpick comments (3)
cvat/apps/analytics_report/report/derived_metrics/average_annotation_speed.py (3)
Line range hint
10-27
: Consider adding type hints for thecalculate
method.def calculate(self) -> dict:
Line range hint
33-38
: Consider adding type hints for theget_empty
method.def get_empty(self) -> dict:
Line range hint
42-58
: Consider adding type hints for thecalculate
method.def calculate(self) -> dict:
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (8)
- changelog.d/20240510_095000_boris_fixed_analytics_for_skeletons.md (1 hunks)
- changelog.d/20240510_095034_boris_fixed_analytics_for_skeletons.md (1 hunks)
- cvat/apps/analytics_report/report/create.py (5 hunks)
- cvat/apps/analytics_report/report/derived_metrics/init.py (1 hunks)
- cvat/apps/analytics_report/report/derived_metrics/annotation_speed.py (2 hunks)
- cvat/apps/analytics_report/report/derived_metrics/average_annotation_speed.py (5 hunks)
- cvat/apps/analytics_report/report/get.py (2 hunks)
- cvat/apps/analytics_report/report/primary_metrics/annotation_speed.py (1 hunks)
Files skipped from review due to trivial changes (3)
- cvat/apps/analytics_report/report/derived_metrics/annotation_speed.py
- cvat/apps/analytics_report/report/get.py
- cvat/apps/analytics_report/report/primary_metrics/annotation_speed.py
Additional Context Used
Ruff (13)
cvat/apps/analytics_report/report/derived_metrics/__init__.py (13)
5-5:
.annotation_speed.ProjectAnnotationSpeed
imported but unused; consider removing, adding to__all__
, or using a redundant alias
5-5:
.annotation_speed.TaskAnnotationSpeed
imported but unused; consider removing, adding to__all__
, or using a redundant alias
6-6:
.annotation_time.ProjectAnnotationTime
imported but unused; consider removing, adding to__all__
, or using a redundant alias
6-6:
.annotation_time.TaskAnnotationTime
imported but unused; consider removing, adding to__all__
, or using a redundant alias
8-8:
.average_annotation_speed.JobAverageAnnotationSpeed
imported but unused; consider removing, adding to__all__
, or using a redundant alias
9-9:
.average_annotation_speed.ProjectAverageAnnotationSpeed
imported but unused; consider removing, adding to__all__
, or using a redundant alias
10-10:
.average_annotation_speed.TaskAverageAnnotationSpeed
imported but unused; consider removing, adding to__all__
, or using a redundant alias
12-12:
.base.DerivedMetricBase
imported but unused; consider removing, adding to__all__
, or using a redundant alias
13-13:
.objects.ProjectObjects
imported but unused; consider removing, adding to__all__
, or using a redundant alias
13-13:
.objects.TaskObjects
imported but unused; consider removing, adding to__all__
, or using a redundant alias
14-14:
.total_object_count.JobTotalObjectCount
imported but unused; consider removing, adding to__all__
, or using a redundant alias
14-14:
.total_object_count.ProjectTotalObjectCount
imported but unused; consider removing, adding to__all__
, or using a redundant alias
14-14:
.total_object_count.TaskTotalObjectCount
imported but unused; consider removing, adding to__all__
, or using a redundant alias
Additional comments not posted (8)
changelog.d/20240510_095000_boris_fixed_analytics_for_skeletons.md (1)
1-4
: Changelog entry looks good.changelog.d/20240510_095034_boris_fixed_analytics_for_skeletons.md (1)
1-4
: Changelog entry looks good.cvat/apps/analytics_report/report/derived_metrics/average_annotation_speed.py (1)
65-66
: Class definition looks good.cvat/apps/analytics_report/report/create.py (5)
17-26
: Imports updated correctly to reflect the new metric names.
48-48
:JobAverageAnnotationSpeed
correctly included in the metrics list.
372-372
:JobAverageAnnotationSpeed
correctly included in the derived metrics list.
436-436
:TaskAverageAnnotationSpeed
correctly included in the derived metrics list.
499-499
:ProjectAverageAnnotationSpeed
correctly included in the derived metrics list.
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.
Actionable comments posted: 1
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- changelog.d/20240516_093233_boris_fixed_annotation_speed.md (1 hunks)
- changelog.d/20240516_093537_boris_fixed_annotation_speed.md (1 hunks)
- cvat/apps/analytics_report/report/derived_metrics/average_annotation_speed.py (5 hunks)
Files skipped from review due to trivial changes (1)
- changelog.d/20240516_093537_boris_fixed_annotation_speed.md
Files skipped from review as they are similar to previous changes (1)
- cvat/apps/analytics_report/report/derived_metrics/average_annotation_speed.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
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.
Actionable comments posted: 1
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- changelog.d/20240516_093233_boris_fixed_annotation_speed.md (1 hunks)
- tests/cypress/e2e/features/analytics_pipeline.js (2 hunks)
Files not reviewed due to errors (1)
- tests/cypress/e2e/features/analytics_pipeline.js (no review received)
Additional Context Used
LanguageTool (1)
changelog.d/20240516_093233_boris_fixed_annotation_speed.md (1)
Near line 3: Did you mean the adverb “anymore”?
Context: ... applied to the annotation speed metric any more (<https://github.com/cvat-ai/cvat/pul...
@@ -0,0 +1,4 @@ | |||
### Changed | |||
|
|||
- Working time rounding to a minimal value of 1 hour is not applied to the annotation speed metric any more |
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.
Correct the grammar.
- Working time rounding to a minimal value of 1 hour is not applied to the annotation speed metric any more
+ Working time rounding to a minimal value of 1 hour is not applied to the annotation speed metric anymore
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
- Working time rounding to a minimal value of 1 hour is not applied to the annotation speed metric any more | |
Working time rounding to a minimal value of 1 hour is not applied to the annotation speed metric anymore |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #7898 +/- ##
===========================================
+ Coverage 83.33% 83.34% +0.01%
===========================================
Files 380 380
Lines 40022 40012 -10
Branches 3766 3766
===========================================
- Hits 33353 33349 -4
+ Misses 6669 6663 -6
|
Motivation and context
Depends on ##7883
How has this been tested?
Checklist
develop
branch(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.
Summary by CodeRabbit
Bug Fixes
Improvements
These changes enhance the accuracy and clarity of analytic reports, providing more meaningful insights into annotation speeds and object counts.