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

Added testing for mets_part_differentials #144

Merged
merged 4 commits into from
Feb 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions geodepy/tests/test_survey.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import unittest
from geodepy.convert import DMSAngle
from geodepy.survey import (first_vel_params, first_vel_corrn,
precise_inst_ht, va_conv, radiations, joins)

from geodepy.survey import (first_vel_params, first_vel_corrn,
mets_partial_differentials, precise_inst_ht,
va_conv, radiations, joins)

class TestSurveyConvert(unittest.TestCase):
def test_first_vel_params(self):
Expand All @@ -25,6 +25,22 @@ def test_first_vel_corrn(self):
obs_pressure, obs_relative_humidity)
corrected_obs_distance = raw_obs_distance + correction
self.assertEqual(round(corrected_obs_distance, 4), 1117.8624)

def test_mets_partial_differentials(self):
group_ref_Index = 1.00028
temp = 15
pressure = 1013.25
rel_humidity = 60
K = round(0.91973804217265260,2)
L = round(0.2619533756724471,2)
M = round(0.03911157383307305,2)
differ_new = mets_partial_differentials(group_ref_Index,
temp,
pressure,
rel_humidity)
self.assertEqual(round(differ_new[0], 2), K)
self.assertEqual(round(differ_new[1], 2), L)
self.assertEqual(round(differ_new[2], 2), M)

def test_va_conv(self):
test1 = va_conv(92.24305555555556, 2116.254)
Expand Down