Use QE.csv file

This commit is contained in:
Lukas Klass 2020-09-09 16:59:40 +02:00
parent 4323d7cafa
commit 7a7ceb936d
3 changed files with 14 additions and 2 deletions

12
tests/data/ccd/QE.csv Normal file
View File

@ -0,0 +1,12 @@
wavelength [nm],QE [electron / photon]
400,1
410,1
420,1
430,1
440,1
450,1
460,1
470,1
480,1
490,1
500,1
1 wavelength [nm] QE [electron / photon]
2 400 1
3 410 1
4 420 1
5 430 1
6 440 1
7 450 1
8 460 1
9 470 1
10 480 1
11 490 1
12 500 1

View File

@ -45,7 +45,7 @@
<pixel_geometry val="1024, 1024" val_unit="pix" comment="Pixel geometry"/>
<center_offset val="0, 0" val_unit="pix" comment="Shift of the array center"/>
<pixel>
<quantum_efficiency val="data/ccd/PCO-Edge-42-QE.txt" comment="Quantum efficiency of the detector pixel"/>
<quantum_efficiency val="tests/data/ccd/QE.csv" comment="Quantum efficiency of the detector pixel"/>
<pixel_size val="6.5" val_unit="um"/>
<dark_current val="20" val_unit="electron / (pix * s)" comment="Detector dark current"/>
<sigma_read_out val="10.0" val_unit="electron(1/2) / pix" comment="Detector readout noise in e-rms"/>

View File

@ -23,7 +23,7 @@ class TestImager(TestCase):
def test_getSNR(self):
snr = self.imager.getSNR(0.1 * u.s)
self.assertAlmostEqual(snr.value, 5.694075373738752)
self.assertAlmostEqual(snr.value, 7.112939048582188)
def test_getExpTime(self):
exp_time = 0.1 * u.s