Remove print statements

This commit is contained in:
Lukas Klass 2020-10-24 16:49:10 +02:00
parent 68b37f763e
commit 7f400caf75

View File

@ -10,13 +10,11 @@ class TestCosmicBackground(TestCase):
self.cosmic = CosmicBackground(self.target) self.cosmic = CosmicBackground(self.target)
def test_calcSignal(self): def test_calcSignal(self):
print(self.cosmic.calcSignal()[0])
self.assertTrue(self.cosmic.calcSignal()[0] == SpectralQty(np.arange(100, 105) * u.um, self.assertTrue(self.cosmic.calcSignal()[0] == SpectralQty(np.arange(100, 105) * u.um,
np.array([6.65e-19, 6.391e-19, 6.145e-19, 5.91e-19, np.array([6.65e-19, 6.391e-19, 6.145e-19, 5.91e-19,
5.687e-19]) << u.W / (u.m ** 2 * u.nm))) 5.687e-19]) << u.W / (u.m ** 2 * u.nm)))
def test_calcBackground(self): def test_calcBackground(self):
print(self.cosmic.calcBackground())
self.assertTrue(self.cosmic.calcBackground() == SpectralQty(np.arange(100, 105) * u.um, self.assertTrue(self.cosmic.calcBackground() == SpectralQty(np.arange(100, 105) * u.um,
np.array( np.array(
[1.398e-28, 2.244e-28, 3.566e-28, 5.614e-28, [1.398e-28, 2.244e-28, 3.566e-28, 5.614e-28,