def test_conversion_consistency_inverse():
    """
    Test that the conversions invert correctly
    """
    seeing1 = 1.0
    cn2 = atmos_conversions.seeing_to_cn2(seeing1)
    seeing2 = atmos_conversions.cn2_to_seeing(cn2)
    assert seeing1 == seeing2
Exemplo n.º 2
0
def test_conversion_consistency_inverse():
    """
    Test that the conversions invert correctly
    """
    seeing1 = 1.0
    cn2 = atmos_conversions.seeing_to_cn2(seeing1)
    seeing2 = atmos_conversions.cn2_to_seeing(cn2)
    assert seeing1 == seeing2
Exemplo n.º 3
0
def test_conversion_consistency():
    """
    Test internal consistency of conversion by comparing with intermediate steps
    """
    cn2 = 5e-13
    r0 = atmos_conversions.cn2_to_r0(cn2)
    seeing_1 = atmos_conversions.r0_to_seeing(r0)
    seeing_2 = atmos_conversions.cn2_to_seeing(cn2)
    assert seeing_1 == seeing_2
def test_conversion_consistency():
    """
    Test internal consistency of conversion by comparing with intermediate steps
    """
    cn2 = 5e-13
    r0 = atmos_conversions.cn2_to_r0(cn2)
    seeing_1 = atmos_conversions.r0_to_seeing(r0)
    seeing_2 = atmos_conversions.cn2_to_seeing(cn2)
    assert seeing_1 == seeing_2
Exemplo n.º 5
0
def test_cn2_to_seeing():
    cn2 = 5e-13
    seeing = atmos_conversions.cn2_to_seeing(cn2)
    assert isinstance(seeing, float)
Exemplo n.º 6
0
def test_cn2_to_seeing():
    cn2 = 5e-13
    seeing = atmos_conversions.cn2_to_seeing(cn2)
    assert type(seeing) == float
def test_cn2_to_seeing():
    cn2 = 5e-13
    seeing = atmos_conversions.cn2_to_seeing(cn2)
    assert type(seeing) == float
Exemplo n.º 8
0
def test_conversion_consistency():
    cn2 = 5e-13
    r0 = atmos_conversions.cn2_to_r0(cn2)
    seeing_1 = atmos_conversions.r0_to_seeing(r0)
    seeing_2 = atmos_conversions.cn2_to_seeing(cn2)
    assert seeing_1 == seeing_2