def test_StrikeDip(self):
     """
     Test strike_dip function - all values are taken from MatLab.
     """
     sl1 = -0.048901208623019
     sl2 = 0.178067035725425
     sl3 = 0.982802524713469
     (strike, dip) = strike_dip(sl2, sl1, sl3)
     self.assertAlmostEqual(strike, 254.64386091007400)
     self.assertAlmostEqual(dip, 10.641291652406172)
Beispiel #2
0
 def test_StrikeDip(self):
     """
     Test strike_dip function - all values are taken from MatLab.
     """
     sl1 = -0.048901208623019
     sl2 = 0.178067035725425
     sl3 = 0.982802524713469
     (strike, dip) = strike_dip(sl2, sl1, sl3)
     self.assertAlmostEqual(strike, 254.64386091007400)
     self.assertAlmostEqual(dip, 10.641291652406172)
Beispiel #3
0
 def test_strike_dip(self):
     """
     Test strike_dip function - all values are taken from MatLab.
     """
     sl1 = -0.048901208623019
     sl2 = 0.178067035725425
     sl3 = 0.982802524713469
     (strike, dip) = strike_dip(sl2, sl1, sl3)
     assert round(abs(strike - 254.64386091007400), 7) == 0
     assert round(abs(dip - 10.641291652406172), 7) == 0