Skip to content

Commit 9c3c97e

Browse files
committed
Include test_first_vel_corrn_with_CO2 in TestSurveyConvert
1 parent bfb819c commit 9c3c97e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

geodepy/tests/test_survey.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,21 @@ def test_first_vel_corrn(self):
2525
obs_pressure, obs_relative_humidity)
2626
corrected_obs_distance = raw_obs_distance + correction
2727
self.assertEqual(round(corrected_obs_distance, 4), 1117.8624)
28+
29+
def test_first_vel_corrn_with_CO2(self):
30+
edm_wavelength = 0.850
31+
params = first_vel_params(edm_wavelength,49951.33424,1.000281783)
32+
raw_obs_distance = 1117.8517
33+
obs_temperature = 6.8
34+
obs_pressure = 960.8
35+
obs_relative_humidity = 58.6
36+
CO2_ppm_2022 = 420
37+
correction = first_vel_corrn(raw_obs_distance, params, obs_temperature,
38+
obs_pressure, obs_relative_humidity,
39+
CO2_ppm = CO2_ppm_2022,
40+
wavelength = edm_wavelength)
41+
corrected_obs_distance = raw_obs_distance + correction
42+
self.assertEqual(round(corrected_obs_distance, 4), 1117.8624)
2843

2944
def test_mets_partial_differentials(self):
3045
group_ref_Index = 1.00028

0 commit comments

Comments
 (0)