Esempio n. 1
0
def test_magnification_general(objdist):
    efl = 1
    result = thinlens.object_dist_to_mag(efl, objdist)
    assert result != np.nan
    assert result != np.inf
Esempio n. 2
0
def test_magnification_unity_case():
    efl = 1
    objdist = 2
    assert thinlens.object_dist_to_mag(efl, objdist) == -1