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
388 stars 128 forks source link

Fix test comparing platform angles close to ±π #766

Closed sdhiscocks closed 1 year ago

sdhiscocks commented 1 year ago

Use Bearing type to handle wrapping

This was failing on CircleCI due to not handling azimuth not being exactly equal to -np.pi (off at 8th decimal place or something.).

codecov[bot] commented 1 year ago

Codecov Report

Base: 94.67% // Head: 94.69% // Increases project coverage by +0.02% :tada:

Coverage data is based on head (4a3766a) compared to base (ce13b24). Patch has no changes to coverable lines.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #766 +/- ## ========================================== + Coverage 94.67% 94.69% +0.02% ========================================== Files 174 174 Lines 9197 9197 Branches 1822 1822 ========================================== + Hits 8707 8709 +2 + Misses 350 349 -1 + Partials 140 139 -1 ``` | Flag | Coverage Δ | | |---|---|---| | integration | `70.54% <ø> (ø)` | | | unittests | `89.42% <ø> (+0.27%)` | :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/766?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl) | Coverage Δ | | |---|---|---| | [stonesoup/dataassociator/tracktotrack.py](https://codecov.io/gh/dstl/Stone-Soup/pull/766?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl#diff-c3RvbmVzb3VwL2RhdGFhc3NvY2lhdG9yL3RyYWNrdG90cmFjay5weQ==) | `93.42% <0.00%> (+1.31%)` | :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.