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

Fix plugins for latest versions of Python #956

Closed sdhiscocks closed 4 months ago

sdhiscocks commented 4 months ago

The dictionary like interface was dropped in Python 3.12. Changes here attempt to use newer interface (group keyword argument from Python 3.10), and fall back to old interface (dict) if error is raised.

codecov[bot] commented 4 months ago

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (b018512) 88.82% compared to head (d31f31f) 93.35%.

Files Patch % Lines
stonesoup/plugins.py 16.66% 5 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #956 +/- ## ========================================== + Coverage 88.82% 93.35% +4.53% ========================================== Files 201 201 Lines 12639 12642 +3 Branches 2600 2600 ========================================== + Hits 11226 11802 +576 + Misses 1137 598 -539 + Partials 276 242 -34 ``` | [Flag](https://app.codecov.io/gh/dstl/Stone-Soup/pull/956/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/956/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl) | `66.57% <16.66%> (?)` | | | [unittests](https://app.codecov.io/gh/dstl/Stone-Soup/pull/956/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl) | `88.83% <0.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.

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