seafloor-geodesy / gnatss

Community Seafloor Global Navigation Satellite Systems - Acoustic (GNSS-A) Transponder Surveying Software
https://gnatss.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
10 stars 14 forks source link

feat: Add numba harmonic mean implementation #194

Closed lsetiawan closed 10 months ago

lsetiawan commented 10 months ago

Added '_sv_harmon_mean' numba implementation for calculating harmonic mean that uses calculations used within the original fortran code to get same harmonic values. Now there's a 'method' value for the main 'sv_harmonic_mean' function that allows user to switch back and forth b/w the two methods.


Ref #193

codecov[bot] commented 10 months ago

Codecov Report

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

Comparison is base (32ab8b6) 50.98% compared to head (57432f3) 50.60%. Report is 1 commits behind head on main.

Files Patch % Lines
src/gnatss/harmonic_mean.py 52.08% 23 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #194 +/- ## ========================================== - Coverage 50.98% 50.60% -0.38% ========================================== Files 16 16 Lines 865 905 +40 ========================================== + Hits 441 458 +17 - Misses 424 447 +23 ```

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