def test_ensemble_synthetic_channel_orientation():
dip, azi = rotate.ensemble_synthetic_channel_orientation("MXZ")
assert np.isclose(dip, 90.0)
assert np.isclose(azi, 0.0)
dip, azi = rotate.ensemble_synthetic_channel_orientation("MXN")
assert np.isclose(dip, 0.0)
assert np.isclose(azi, 0.0)
dip, azi = rotate.ensemble_synthetic_channel_orientation("MXE")
assert np.isclose(dip, 0.0)
assert np.isclose(azi, 90.0)
with pytest.raises(Exception) as err:
rotate.ensemble_synthetic_channel_orientation("MXR")
assert ": MXR" in str(err)
评论列表
文章目录