Beam splitter added
This commit is contained in:
parent
68db02c60d
commit
8d7d9dab01
5
tests/data/beamsplitter/beamsplitter_transmittance.csv
Normal file
5
tests/data/beamsplitter/beamsplitter_transmittance.csv
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
wavelength,spectral transmittance
|
||||||
|
201,1
|
||||||
|
202,1
|
||||||
|
203,1
|
||||||
|
204,0.9
|
|
@ -11,7 +11,8 @@ class TestBeamSplitter(TestCase):
|
|||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.target = FileTarget("data/target/target_demo_1.csv")
|
self.target = FileTarget("data/target/target_demo_1.csv")
|
||||||
self.splitter = BeamSplitter(self.target, "data/lens/lens_transmittance.csv", 0.5, temp=300 * u.K)
|
self.splitter = BeamSplitter(self.target, "data/beamsplitter/beamsplitter_transmittance.csv", 0.5,
|
||||||
|
temp=300 * u.K)
|
||||||
|
|
||||||
def test___init__(self):
|
def test___init__(self):
|
||||||
self.assertEqual(self.splitter.calcNoise(),
|
self.assertEqual(self.splitter.calcNoise(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user