def test_returns_waveset_of_ncpa_psf_inside_filter_edges(self): filt = eo._filter_tophat_curve() psf = eo._ncpa_psf() kwargs = {"wave_min": 0.5, "wave_max": 2.5} wave_bin_edges = fm_utils.get_imaging_waveset([psf, filt], **kwargs) assert min(wave_bin_edges) == 1. assert max(wave_bin_edges) == 2. assert len(wave_bin_edges) == 9
def test_returns_waveset_of_psf_and_filter(self): filt = eo._filter_tophat_curve() psf = eo._const_psf() kwargs = {"wave_min": 0.5, "wave_max": 2.5} wave_bin_edges = fm_utils.get_imaging_waveset([filt, psf], **kwargs) assert len(wave_bin_edges) == 4
def test_returns_waveset_of_psf(self): psf = eo._const_psf() kwargs = {"wave_min": 0.5, "wave_max": 2.5} wave_bin_edges = fm_utils.get_imaging_waveset([psf], **kwargs) assert len(wave_bin_edges) == 4
def test_returns_default_wave_range_when_passed_no_effects(self): kwargs = {"wave_min": 0.5, "wave_max": 2.5} wave_bin_edges = fm_utils.get_imaging_waveset([], **kwargs) assert len(wave_bin_edges) == 2