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

Sensor performance improvement #1084

Merged
merged 3 commits into from
Oct 1, 2024
Merged

Sensor performance improvement #1084

merged 3 commits into from
Oct 1, 2024

Conversation

sdhiscocks
Copy link
Member

@sdhiscocks sdhiscocks commented Sep 30, 2024

These changes speed up some sensor management examples around x3

  • Add caching for rotation matrix functions
  • Pass measurement_model to is_detectable in SimpleSensor

This includes a breaking change, where anything sub classing from SimpleSensor will need to add measurement_model argument to is_detectable method (even if not using it).

@sdhiscocks sdhiscocks added the breaking A breaking change that required other to modify their code label Sep 30, 2024
@sdhiscocks sdhiscocks requested a review from a team as a code owner September 30, 2024 09:00
@sdhiscocks sdhiscocks requested review from jswright-dstl, orosoman-dstl and akenyon and removed request for a team September 30, 2024 09:00
By passing a measurement mode to is_detectable, this avoids unnecessary
recreation of a model for every truth. Where a different model is
needed, still try to use the parameters of the sensor model in order to
minimise calculations.
Copy link

codecov bot commented Sep 30, 2024

Codecov Report

Attention: Patch coverage is 60.97561% with 16 lines in your changes missing coverage. Please review.

Project coverage is 94.41%. Comparing base (bf6b475) to head (8f12b80).

Files with missing lines Patch % Lines
stonesoup/sensor/radar/radar.py 46.66% 9 Missing and 7 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1084      +/-   ##
==========================================
- Coverage   94.49%   94.41%   -0.09%     
==========================================
  Files         209      209              
  Lines       13771    13786      +15     
  Branches     2799     2808       +9     
==========================================
+ Hits        13013    13016       +3     
- Misses        508      515       +7     
- Partials      250      255       +5     
Flag Coverage Δ
integration 66.79% <56.09%> (-0.06%) ⬇️
unittests 90.99% <60.97%> (-0.08%) ⬇️

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.

@sdhiscocks sdhiscocks merged commit aa609b0 into main Oct 1, 2024
8 checks passed
@sdhiscocks sdhiscocks deleted the sensor_man_perf branch October 1, 2024 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking A breaking change that required other to modify their code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants