Skip to content
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

Progress Trackers Manually: Option E #980

Merged
merged 5 commits into from
Apr 25, 2024
Merged

Conversation

gawebb-dstl
Copy link
Contributor

All current trackers require a detection feeder. It can be useful to progress a tracker manually without a detection feeder (see Multi-Sensor Fusion: Covariance Intersection Using Tracks as Measurements example).

All current trackers and start their __next__ function with:

time, detections = next(self.detector_iter)
# Some tracking logic

I've added an update_tracker function which takes the time and detections from the detection feeder as an input. With this being a separate function, you can access it directly and bypass the detection feeder which may be easier in instances.

This also fixes issue #883

This is my fourth iteration of trying to get this right. See #742, #779 and #888 for previous implementations.

@gawebb-dstl gawebb-dstl requested a review from sdhiscocks April 5, 2024 18:18
@gawebb-dstl gawebb-dstl requested a review from a team as a code owner April 5, 2024 18:18
@gawebb-dstl gawebb-dstl requested review from csherman-dstl and removed request for a team April 5, 2024 18:18
…in types as it isn't available in Python 3.8
Copy link

codecov bot commented Apr 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.52%. Comparing base (8c8f9ee) to head (0f8d7d5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #980      +/-   ##
==========================================
- Coverage   93.54%   93.52%   -0.03%     
==========================================
  Files         202      202              
  Lines       12930    12949      +19     
  Branches     2640     2644       +4     
==========================================
+ Hits        12096    12111      +15     
- Misses        590      592       +2     
- Partials      244      246       +2     
Flag Coverage Δ
integration 66.05% <85.00%> (+<0.01%) ⬆️
unittests 89.19% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gawebb-dstl gawebb-dstl force-pushed the manual_progress_tracker_v5 branch from 1521e2f to 0f8d7d5 Compare April 8, 2024 07:14
@sdhiscocks sdhiscocks merged commit ba12d77 into main Apr 25, 2024
10 checks passed
@sdhiscocks sdhiscocks deleted the manual_progress_tracker_v5 branch April 25, 2024 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants