ESBO-ETC/tests/psf/test_Zemax.py

12 lines
402 B
Python
Raw Normal View History

2020-04-29 17:08:03 +02:00
from unittest import TestCase
from esbo_etc.classes.psf.Zemax import Zemax
import astropy.units as u
class TestZemax(TestCase):
def setUp(self):
2020-05-08 15:06:44 +02:00
self.zemax = Zemax("data/psf.txt", 13, 4 * u.um, 0.5 * u.m, 13, 6.5 * u.um)
2020-04-29 17:08:03 +02:00
def test_calcReducedObservationAngle(self):
2020-05-08 15:06:44 +02:00
self.assertAlmostEqual(self.zemax.calcReducedObservationAngle(0.6595336151196701).value, 0.08106259728314079)