The gnatss package has a module called harmonic_mean. This module calculates the harmonic mean of a sound speed profile. The function that is used for the user is called sv_harmonic_mean. Based on code coverage analysis in codecov The ValueError is not covered. Additionally, there's a private function called _compute_hm that also has ValueError that is not covered.
The task is to do the following:
[x] Add test case to raise the ValueError in test_harmonic_mean for both sv_harmonic_mean and _compute_hm.
Contact
landungs@uw.edu
Description
The
gnatss
package has a module calledharmonic_mean
. This module calculates the harmonic mean of a sound speed profile. The function that is used for the user is calledsv_harmonic_mean
. Based on code coverage analysis in codecov TheValueError
is not covered. Additionally, there's a private function called_compute_hm
that also hasValueError
that is not covered.The task is to do the following:
ValueError
intest_harmonic_mean
for bothsv_harmonic_mean
and_compute_hm
.Code Repository
https://github.com/uw-ssec/offshore-geodesy
Issue link
No response
Task level
L1
What is the primary programming language for the task
python
Additional dependencies
No response