Test results updated

This commit is contained in:
Lukas Klass 2020-06-26 21:17:41 +02:00
parent 5277f5924c
commit b607dc4f35
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@
</common>
<astroscene>
<target type="BlackBodyTarget" temp="5778" temp_unit="K" mag="10" mag_unit="mag" band="V" size="point"
<target type="BlackBodyTarget" temp="5778" temp_unit="K" mag="10" mag_unit="mag" band="V"
comment="Modeling the sun as mag 10 star"/>
<optical_component type="Atmosphere" transmittance="data/atmosphere/transmittance.csv"
emission="data/atmosphere/emission.csv" comment="Including the atmosphere"/>

View File

@ -13,7 +13,7 @@ class TestBlackBodyTarget(TestCase):
def test_calcSignal(self):
signal = SpectralQty(np.arange(400, 800, 100) << u.nm, np.array([4.91164694e-15, 5.61732017e-15, 5.22403225e-15,
4.43017583e-15]) << u.W / (u.m ** 2 * u.nm))
self.assertEqual(self.target.calcSignal(), (signal, "Point", 0.0))
self.assertEqual(self.target.calcSignal(), (signal, 0.0))
def test_calcBackground(self):
noise = SpectralQty(np.arange(400, 800, 100) << u.nm, np.repeat(0, 4) << u.W / (u.m ** 2 * u.nm * u.sr))

View File

@ -12,7 +12,7 @@ class TestFileTarget(TestCase):
def test_calcSignal(self):
signal = SpectralQty(np.arange(200, 210, 1) << u.nm,
np.arange(1.1e-15, 2.0e-15, 1e-16) << u.W / (u.m ** 2 * u.nm))
self.assertEqual(self.target.calcSignal(), (signal, "Point", 0.0))
self.assertEqual(self.target.calcSignal(), (signal, 0.0))
def test_calcBackground(self):
noise = SpectralQty(np.arange(200, 210, 1) << u.nm,