prints removed
This commit is contained in:
parent
b7865fe93b
commit
e763a753a0
@ -100,11 +100,7 @@ class TestSpectralQty(TestCase):
|
|||||||
|
|
||||||
def test_fromFile(self):
|
def test_fromFile(self):
|
||||||
sqty = SpectralQty.fromFile("data/target/target_demo_1.csv", u.nm, u.W / (u.m ** 2 * u.nm))
|
sqty = SpectralQty.fromFile("data/target/target_demo_1.csv", u.nm, u.W / (u.m ** 2 * u.nm))
|
||||||
print(sqty.qty)
|
|
||||||
print(sqty.wl)
|
|
||||||
res = SpectralQty(np.arange(1.1, 2.1, 0.1) * 1e-15 << u.W / (u.m**2 * u.nm),
|
res = SpectralQty(np.arange(1.1, 2.1, 0.1) * 1e-15 << u.W / (u.m**2 * u.nm),
|
||||||
np.arange(200, 210, 1) << u.nm)
|
np.arange(200, 210, 1) << u.nm)
|
||||||
print(res.qty)
|
|
||||||
print(res.wl)
|
|
||||||
self.assertEqual(sqty, SpectralQty(np.arange(200, 210, 1) << u.nm,
|
self.assertEqual(sqty, SpectralQty(np.arange(200, 210, 1) << u.nm,
|
||||||
np.arange(1.1, 2.1, 0.1) * 1e-15 << u.W / (u.m**2 * u.nm)))
|
np.arange(1.1, 2.1, 0.1) * 1e-15 << u.W / (u.m**2 * u.nm)))
|
||||||
|
Loading…
Reference in New Issue
Block a user