From 8d7d9dab01d3c9d2796055fc015b81cd43e8db9b Mon Sep 17 00:00:00 2001 From: LukasK13 Date: Wed, 15 Apr 2020 17:20:50 +0200 Subject: [PATCH] Beam splitter added --- tests/data/beamsplitter/beamsplitter_transmittance.csv | 5 +++++ tests/test_BeamSplitter.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 tests/data/beamsplitter/beamsplitter_transmittance.csv diff --git a/tests/data/beamsplitter/beamsplitter_transmittance.csv b/tests/data/beamsplitter/beamsplitter_transmittance.csv new file mode 100644 index 0000000..e12aeac --- /dev/null +++ b/tests/data/beamsplitter/beamsplitter_transmittance.csv @@ -0,0 +1,5 @@ +wavelength,spectral transmittance +201,1 +202,1 +203,1 +204,0.9 diff --git a/tests/test_BeamSplitter.py b/tests/test_BeamSplitter.py index 184bdf0..4fb5d8a 100644 --- a/tests/test_BeamSplitter.py +++ b/tests/test_BeamSplitter.py @@ -11,7 +11,8 @@ class TestBeamSplitter(TestCase): def setUp(self): 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): self.assertEqual(self.splitter.calcNoise(),