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
384 stars 126 forks source link

Remove hardcoded Metrics from MetricPlotter #982

Closed jswright-dstl closed 2 months ago

jswright-dstl commented 2 months ago

MetricPlotter had a hardcoded list of plottable metrics meaning every new plottable metric would require an update to the plottable_metric list in MetricPlotter. This change compiles a list of plottable metrics of metrics generated for all metrics that value is a list of SingleTimeMetric.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.50%. Comparing base (c29b661) to head (7e39294).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #982 +/- ## ======================================= Coverage 93.50% 93.50% ======================================= Files 202 202 Lines 12934 12939 +5 Branches 2640 2643 +3 ======================================= + Hits 12094 12099 +5 Misses 594 594 Partials 246 246 ``` | [Flag](https://app.codecov.io/gh/dstl/Stone-Soup/pull/982/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl) | Coverage Δ | | |---|---|---| | [integration](https://app.codecov.io/gh/dstl/Stone-Soup/pull/982/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl) | `66.04% <100.00%> (+<0.01%)` | :arrow_up: | | [unittests](https://app.codecov.io/gh/dstl/Stone-Soup/pull/982/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl) | `89.14% <16.66%> (-0.02%)` | :arrow_down: | 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.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.