dstl / Stone-Soup

A software project to provide the target tracking community with a framework for the development and testing of tracking algorithms.
https://stonesoup.rtfd.io
MIT License
400 stars 131 forks source link

Add instance check for reward function #722

Closed jswright-dstl closed 1 year ago

jswright-dstl commented 1 year ago

Current reward function assumes a single detection per track. This adds an instance check to manage when clutter (or non TrueDetection types) is present.

codecov[bot] commented 1 year ago

Codecov Report

Base: 94.66% // Head: 94.66% // Increases project coverage by +0.00% :tada:

Coverage data is based on head (a6c1033) compared to base (f88c394). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #722 +/- ## ======================================= Coverage 94.66% 94.66% ======================================= Files 171 171 Lines 8773 8774 +1 Branches 1707 1707 ======================================= + Hits 8305 8306 +1 Misses 342 342 Partials 126 126 ``` | Flag | Coverage Δ | | |---|---|---| | integration | `70.02% <100.00%> (+<0.01%)` | :arrow_up: | | unittests | `90.75% <100.00%> (+<0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/dstl/Stone-Soup/pull/722?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl) | Coverage Δ | | |---|---|---| | [stonesoup/sensormanager/reward.py](https://codecov.io/gh/dstl/Stone-Soup/pull/722/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl#diff-c3RvbmVzb3VwL3NlbnNvcm1hbmFnZXIvcmV3YXJkLnB5) | `97.72% <100.00%> (+0.05%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.