ScopeSim 0.9.2__tar.gz → 0.9.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {scopesim-0.9.2 → scopesim-0.9.3}/PKG-INFO +2 -2
- {scopesim-0.9.2 → scopesim-0.9.3}/pyproject.toml +6 -5
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/__init__.py +1 -1
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/base_classes.py +0 -20
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/commands/user_commands.py +16 -5
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/detector/detector.py +3 -3
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/apertures.py +9 -9
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/detector_list.py +19 -18
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/effects.py +2 -10
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/electronic/__init__.py +1 -1
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/electronic/dmps.py +2 -2
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/electronic/electrons.py +15 -13
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/electronic/exposure.py +44 -4
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/electronic/noise.py +62 -54
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/electronic/pixels.py +21 -16
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/metis_lms_trace_list.py +3 -3
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/metis_wcu/metis_wcu.py +2 -1
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/obs_strategies.py +2 -2
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/psfs/analytical.py +5 -4
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/psfs/discrete.py +4 -4
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/psfs/psf_base.py +5 -3
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/psfs/semianalytical.py +4 -4
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/rotation.py +5 -4
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/shifts.py +2 -2
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/shutter.py +2 -2
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/spectral_trace_list.py +4 -3
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/spectral_trace_list_utils.py +2 -2
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/surface_list.py +1 -1
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/ter_curves.py +5 -8
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/logconfig.yaml +2 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/optics/__init__.py +5 -1
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/optics/fov.py +20 -8
- scopesim-0.9.3/scopesim/optics/fov_manager.py +229 -0
- scopesim-0.9.2/scopesim/optics/fov_manager.py → scopesim-0.9.3/scopesim/optics/fov_volume_list.py +5 -223
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/optics/image_plane.py +1 -2
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/optics/image_plane_utils.py +3 -3
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/optics/optical_train.py +1 -1
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/source/source.py +24 -10
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/source/source_fields.py +3 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/conftest.py +14 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/test_utils_functions.py +12 -1
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_commands/test_UserCommands.py +10 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_DetectorModePropertiesSetter.py +4 -4
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_Effects.py +4 -0
- scopesim-0.9.3/scopesim/tests/tests_effects/test_exposure.py +84 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_integrations/test_3_custom_effects.py +11 -20
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_optics/test_FieldOfView.py +5 -6
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_optics/test_ImagePlane.py +1 -1
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_optics/test_SpectralSurface.py +1 -1
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_server/test_database.py +6 -2
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_source/test_source_Source.py +11 -2
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/utils.py +42 -4
- {scopesim-0.9.2 → scopesim-0.9.3}/LICENSE +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/README.md +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/commands/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/commands/scopesimple.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/2MASS/2MASS.H.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/2MASS/2MASS.J.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/2MASS/2MASS.Ks.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F643.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F643_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F648.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F648_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F657.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F657_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F666.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F666_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F680.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F680_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F694.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F694_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F709.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F709_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F723.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F723_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F738.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F738_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F754.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F754_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F770.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F770_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F785.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F785_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F802.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F802_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F819.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F819_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F838.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F838_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F858.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F858_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F878.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F878_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F893.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F893_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F902.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F902_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F911.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F911_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F919.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F919_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F924.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F924_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F927.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F927_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F932.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F932_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F936.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F936_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F940.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.F940_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.sdss_g_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.sdss_i_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.sdss_r_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.sdss_z_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/GTC/OSIRIS.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/Gemini/NIRI.Lprime-G0207w.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/Generic/Bessell.V.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/Generic/Johnson.I.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/Generic/Johnson.J.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/Generic/Johnson_UBVRIJHKL.N.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/HST/WFC3_IR.F160W.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/JWST/MIRI.F1000W.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/JWST/MIRI.F1065C.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/JWST/MIRI.F1130W.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/JWST/MIRI.F1140C.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/JWST/MIRI.F1280W.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/JWST/MIRI.F1500W.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/JWST/MIRI.F1550C.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/JWST/MIRI.F1800W.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/JWST/MIRI.F2100W.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/JWST/MIRI.F2300C.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/JWST/MIRI.F2550W.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/JWST/MIRI.F560W.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/JWST/MIRI.F770W.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/JWST/MIRI.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/JWST/NIRCam.F164N.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/Paranal/HAWKI.BrGamma.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/Paranal/HAWKI.H.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/Paranal/HAWKI.J.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/Paranal/HAWKI.Ks.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/Paranal/NACO.Ks.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/SLOAN/SDSS.rprime_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/SLOAN/SDSS.z.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/data/svo/SLOAN/SDSS.zprime_filter.xml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/defaults.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/detector/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/detector/detector_manager.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/detector/nghxrg.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/data_container.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/effects_utils.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/fits_headers.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/metis_wcu/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/metis_wcu/fpmask.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/psfs/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/spectral_efficiency.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/effects/ter_curves_utils.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/optics/fov_manager_utils.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/optics/fov_utils.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/optics/monochromatic_trace_curve.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/optics/optical_element.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/optics/optics_manager.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/optics/radiometry_utils.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/optics/spectrograph.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/optics/surface.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/optics/surface_utils.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/rc.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/reports/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/reports/report_generator.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/reports/rst_utils.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/server/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/server/database.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/server/download_utils.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/server/example_data_registry.txt +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/server/example_data_utils.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/server/github_utils.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/source/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/source/source_templates.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/source/source_utils.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/howtotest.md +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/METIS_LMS/TRACE_LMS.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/FPA_array_layout.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/LIST_centre_detector_chip.tbl +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/LIST_mirrors_ELT.tbl +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/LIST_mirrors_MICADO_Wide.tbl +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/LIST_mirrors_SCAO_relay.tbl +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/MICADO_IMG_SCAO_WIDE.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/MICADO_SCAO_WIDE_2.config +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/MICADO_SCAO_WIDE_2.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/PSF_basic.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/QE_h4rg.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/TC_blank.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/TC_filter_Br-gamma.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/TC_filter_Ks.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/TER_atmo_average.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/TER_dichroic.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/TER_mirror_gold.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/aperture_list.tbl +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/emission_file.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/mock_MICADO_SCAO_WIDE.config +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SCAO_WIDE/test_FVPSF.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SPEC/FPA_array_layout.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SPEC/FPA_small.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SPEC/PSF_SCAO.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SPEC/PSF_SCAO_ConstPSF_0_5off.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SPEC/SLIT_15000x50mas.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SPEC/SLIT_3000x50mas.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SPEC/TC_filter_Spec_HK.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SPEC/TC_filter_Spec_IJ.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SPEC/TER_atmo_average.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SPEC/TRACE_15arcsec.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SPEC/TRACE_3arcsec.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SPEC/TRACE_MICADO.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/MICADO_SPEC/mock_MICADO_SPEC.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/ATMO_default_NIR_IMG.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/FITS_extra_keywords.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/INS_common_optics.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/INS_ifu_apertures.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/INS_ifu_traces.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/INS_lss_traces.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/INS_unity_refl.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/INS_unity_trans.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/YAML_atmosphere.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/YAML_basic_instrument.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/YAML_detector.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/YAML_mode_ifu.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/YAML_mode_spectroscopy.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/YAML_telescope.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/code/make_spectral_trace.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/default.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/filters/TC_filter_BrGamma.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/filters/TC_filter_CH4.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/filters/TC_filter_H.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/filters/TC_filter_J.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/filters/TC_filter_Ks.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/filters/TC_filter_open.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/slits/SLIT_narrow.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/basic_instrument/slits/SLIT_wide.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/CMD_mvs_cmds.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/CMD_non_unity_cmds.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/CMD_unity_cmds.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/LIST_detector_layout.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/LIST_full_detector_layout.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/MASK_slit_A.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/MASK_slit_B.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/TER_ADC_const_10.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/TER_ADC_const_90.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/TER_blank.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/TER_grating.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/TER_non_unity.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/TER_unity.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/fp_mask_pinhole.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/skycalc_override.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/test_AnisoCADO_rms_map.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/test_ConstPSF.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/test_ConstPSF_WAVELENG.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/test_FVPSF.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/test_NCPAs_table.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/test_aperture.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/test_aperture_list.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/test_circular_fvpsf.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/test_image.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/test_linearity.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/test_report_addendum.rst +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/test_spectrum_Flam.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/test_spectrum_photlam.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/test_table.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/files/test_table.tbl +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/load_basic_instrument.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/photometry/check_photometry.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/photometry/eso_etc_filter_B.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/photometry/eso_etc_filter_H.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/photometry/eso_etc_filter_I.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/photometry/eso_etc_filter_J.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/photometry/eso_etc_filter_K.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/photometry/eso_etc_filter_L.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/photometry/eso_etc_filter_M.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/photometry/eso_etc_filter_N.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/photometry/eso_etc_filter_R.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/photometry/eso_etc_filter_U.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/photometry/eso_etc_filter_V.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/photometry/eso_etc_flux_table.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/photometry/eso_skycalc_r_6000_wave_0.3_15nm_airmass_1_pwv_2.5.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/photometry/eso_skycalc_r_6000_wave_0.3_15nm_airmass_1_pwv_2.5.fits +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/photometry/eso_skycalc_surface_brightness.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/py_objects/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/py_objects/aperture_objects.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/py_objects/detector_objects.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/py_objects/effects_objects.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/py_objects/fov_objects.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/py_objects/header_objects.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/py_objects/imagehdu_objects.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/py_objects/integr_spectroscopy_objects.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/py_objects/optics_manager_objects.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/py_objects/psf_objects.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/py_objects/report_objects.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/py_objects/source_objects.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/py_objects/trace_list_objects.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/py_objects/trace_list_utils.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/py_objects/yaml_objects.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/test_package/TC_filter_Ks.dat +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/test_package/default.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/test_package/test_detector.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/test_package/test_instrument.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/test_package/test_mode_2.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/test_package/test_package.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/test_package/test_telescope.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/test_package/version.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/yamls/MICADO_full.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/yamls/SimpleCADO.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/yamls/SimpleCADO_full_array.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/yamls/min_viable_sys.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/yamls/non_unity_sys.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/yamls/small.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/yamls/test_atmo.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/yamls/test_cfo.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/yamls/test_fpa.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/yamls/test_inst.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/yamls/test_scope.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/yamls/test_system.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/mocks/yamls/unity_sys.yaml +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/test_base_classes.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/test_basic_instrument/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/test_basic_instrument/test_basic_instrument.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/test_import_all.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/test_init.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/test_logging.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_commands/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_commands/test_scopesimple.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_detector/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_detector/test_detector_manager.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_AnisocadoConstPSF.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_ApertureList.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_ApertureMask.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_AtmosphericDispersion.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_AtmosphericDispersionCorrection.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_AutoExposure.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_BasicReadoutNoise.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_ConstPSF.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_DarkCurrent.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_DetectorList.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_Effects_plot_methods.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_FVPSF.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_GaussianDiffractionPSF.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_LinearityCurve.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_MetisLMSEfficiency.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_MetisWCU.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_NonCommonPathAberation.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_PSF.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_PupilTransmission.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_Quantization.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_ReferencePixelBorder.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_Shutter.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_SkycalcTERCurve.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_SpectralEfficiency.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_SpectralTraceList.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_SpectralTraceListUtils.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_Surface.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_SurfaceList.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_TERCurve.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_Vibration.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_adcwheel.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_effect_utils.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_fits_headers.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_obs_strategies.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_shot_noise.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_slitwheel.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_effects/test_ter_curves_utils.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_integrations/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_integrations/test_MICADO_SCAO_WIDE.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_integrations/test_basic_integration.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_integrations/test_flux_is_conserved_through_full_system.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_integrations/test_simplecado.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_integrations/test_source_fov_imageplane_play_nicely.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_integrations/test_speclecado.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_integrations/test_spectroscopy_works_with_all_effects.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_integrations/test_subpixel_shifts.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_optics/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_optics/test_DataContainer.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_optics/test_FOVManager.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_optics/test_FovVolumeList.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_optics/test_ImagePlaneUtils.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_optics/test_MonochromaticTraceCurve.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_optics/test_OpticalElement.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_optics/test_OpticalTrain.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_optics/test_OpticsManager.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_optics/test_fov_manager_utils.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_optics/test_fov_utls.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_reports/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_reports/test_rst_utils.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_server/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_source/__init__.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/tests_source/test_source_templates.py +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/tests/virtualenvs_faq.rst +0 -0
- {scopesim-0.9.2 → scopesim-0.9.3}/scopesim/vega.fits +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ScopeSim
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.3
|
|
4
4
|
Summary: Generalised telescope observation simulator
|
|
5
5
|
Home-page: https://github.com/AstarVienna/ScopeSim
|
|
6
6
|
License: GPL-3.0-or-later
|
|
@@ -20,7 +20,7 @@ Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
|
20
20
|
Requires-Dist: anisocado (>=0.3.0)
|
|
21
21
|
Requires-Dist: astar-utils (>=0.3.1)
|
|
22
22
|
Requires-Dist: astropy (>=6.0.1,<7.0.0)
|
|
23
|
-
Requires-Dist: beautifulsoup4 (>=4.
|
|
23
|
+
Requires-Dist: beautifulsoup4 (>=4.13.3,<5.0.0)
|
|
24
24
|
Requires-Dist: docutils (>=0.19,<0.20)
|
|
25
25
|
Requires-Dist: httpx (>=0.26.0)
|
|
26
26
|
Requires-Dist: lxml (>=5.2.2,<6.0.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "ScopeSim"
|
|
3
|
-
version = "0.9.
|
|
3
|
+
version = "0.9.3"
|
|
4
4
|
description = "Generalised telescope observation simulator"
|
|
5
5
|
license = "GPL-3.0-or-later"
|
|
6
6
|
authors = ["Kieran Leschinski <kieran.leschinski@unive.ac.at>"]
|
|
@@ -28,7 +28,7 @@ pooch = "^1.8.2"
|
|
|
28
28
|
|
|
29
29
|
docutils = "^0.19"
|
|
30
30
|
httpx = ">=0.26.0"
|
|
31
|
-
beautifulsoup4 = "^4.
|
|
31
|
+
beautifulsoup4 = "^4.13.3"
|
|
32
32
|
lxml = "^5.2.2"
|
|
33
33
|
pyyaml = "^6.0.1"
|
|
34
34
|
more-itertools = "^10.2.0"
|
|
@@ -49,8 +49,8 @@ ipykernel = "^6.24.0"
|
|
|
49
49
|
ipympl = "^0.9.4"
|
|
50
50
|
|
|
51
51
|
[tool.poetry.group.test.dependencies]
|
|
52
|
-
pytest = "^
|
|
53
|
-
pytest-cov = "^
|
|
52
|
+
pytest = "^8.3.5"
|
|
53
|
+
pytest-cov = "^6.0.0"
|
|
54
54
|
scopesim_templates = ">=0.6.0"
|
|
55
55
|
ipykernel = "^6.24.0"
|
|
56
56
|
|
|
@@ -78,9 +78,10 @@ requires = ["poetry-core"]
|
|
|
78
78
|
build-backend = "poetry.core.masonry.api"
|
|
79
79
|
|
|
80
80
|
[tool.pytest.ini_options]
|
|
81
|
-
addopts = "--strict-markers"
|
|
81
|
+
addopts = "--strict-markers -m 'not webtest(github=True)'"
|
|
82
82
|
markers = [
|
|
83
83
|
"webtest: marks tests as requiring network (deselect with '-m \"not webtest\"')",
|
|
84
|
+
"webtest_github: marks tests that download from GitHub (select with '-m \"webtest_github\"')",
|
|
84
85
|
"slow: marks tests that take a while (deselect with '-m \"not slow\"')",
|
|
85
86
|
]
|
|
86
87
|
filterwarnings = [
|
|
@@ -61,7 +61,7 @@ from . import utils
|
|
|
61
61
|
|
|
62
62
|
# import specific classes from the modules to included in the global namespace
|
|
63
63
|
|
|
64
|
-
from .utils import bug_report
|
|
64
|
+
from .utils import bug_report, set_inst_pkgs_path, link_irdb
|
|
65
65
|
from .optics.optical_train import OpticalTrain
|
|
66
66
|
from .commands.user_commands import UserCommands
|
|
67
67
|
from .commands.scopesimple import Simulation
|
|
@@ -1,26 +1,6 @@
|
|
|
1
1
|
from astropy.io.fits import Header
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
class SourceBase:
|
|
5
|
-
pass
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class FOVSetupBase:
|
|
9
|
-
pass
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class ImagePlaneBase:
|
|
13
|
-
pass
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
class FieldOfViewBase:
|
|
17
|
-
pass
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class DetectorBase:
|
|
21
|
-
pass
|
|
22
|
-
|
|
23
|
-
|
|
24
4
|
class PoorMansHeader:
|
|
25
5
|
def __init__(self, dic=None):
|
|
26
6
|
self.comments = {}
|
|
@@ -497,7 +497,10 @@ def patch_fake_symlinks(path: Path):
|
|
|
497
497
|
# The path does not exist.
|
|
498
498
|
parent = path.parent
|
|
499
499
|
pathup = patch_fake_symlinks(parent)
|
|
500
|
-
|
|
500
|
+
|
|
501
|
+
if pathup == parent:
|
|
502
|
+
raise FileNotFoundError(f"Cannot find path '{path.name}'")
|
|
503
|
+
|
|
501
504
|
return patch_fake_symlinks(pathup / path.name)
|
|
502
505
|
|
|
503
506
|
|
|
@@ -515,13 +518,21 @@ def add_packages_to_rc_search(local_path, package_list):
|
|
|
515
518
|
A list of the package names to add
|
|
516
519
|
|
|
517
520
|
"""
|
|
518
|
-
|
|
521
|
+
try:
|
|
522
|
+
plocal_path = patch_fake_symlinks(Path(local_path))
|
|
523
|
+
except FileNotFoundError:
|
|
524
|
+
# retry with mocks
|
|
525
|
+
plocal_path = rc.__pkg_dir__ / "tests/mocks"
|
|
526
|
+
|
|
519
527
|
for pkg in package_list:
|
|
520
528
|
pkg_dir = plocal_path / pkg
|
|
521
529
|
if not pkg_dir.exists():
|
|
522
|
-
#
|
|
523
|
-
#
|
|
524
|
-
|
|
530
|
+
# For sub-packages (e.g. ELT, Armazones) it might be ok to not find
|
|
531
|
+
# them, but if we're at the top level, this should not go silent.
|
|
532
|
+
if len(package_list) == 1:
|
|
533
|
+
raise ValueError(f"Package could not be found: {pkg_dir}")
|
|
534
|
+
else:
|
|
535
|
+
logger.warning("Package could not be found: %s", pkg_dir)
|
|
525
536
|
|
|
526
537
|
rc.__search_path__.append_first(pkg_dir)
|
|
527
538
|
|
|
@@ -3,7 +3,7 @@ import numpy as np
|
|
|
3
3
|
from astropy.io.fits import ImageHDU
|
|
4
4
|
from astropy.wcs import WCS
|
|
5
5
|
|
|
6
|
-
from ..
|
|
6
|
+
from ..optics import ImagePlane
|
|
7
7
|
from ..optics.image_plane_utils import (add_imagehdu_to_imagehdu,
|
|
8
8
|
sky_wcs_from_det_wcs)
|
|
9
9
|
from ..utils import get_logger, from_currsys, stringify_dict
|
|
@@ -12,7 +12,7 @@ from ..utils import get_logger, from_currsys, stringify_dict
|
|
|
12
12
|
logger = get_logger(__name__)
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
class Detector
|
|
15
|
+
class Detector:
|
|
16
16
|
def __init__(self, header, cmds=None, **kwargs):
|
|
17
17
|
image = np.zeros((header["NAXIS2"], header["NAXIS1"]))
|
|
18
18
|
self._hdu = ImageHDU(header=header, data=image)
|
|
@@ -25,7 +25,7 @@ class Detector(DetectorBase):
|
|
|
25
25
|
"""Extract HDU from ImagePlane object and add to internal HDU."""
|
|
26
26
|
if reset:
|
|
27
27
|
self.reset()
|
|
28
|
-
if not isinstance(image_plane,
|
|
28
|
+
if not isinstance(image_plane, ImagePlane):
|
|
29
29
|
raise ValueError("image_plane must be an ImagePlane object, "
|
|
30
30
|
f"but is: {type(image_plane)}")
|
|
31
31
|
|
|
@@ -13,7 +13,7 @@ from astropy.table import Table
|
|
|
13
13
|
|
|
14
14
|
from .effects import Effect
|
|
15
15
|
from ..optics import image_plane_utils as imp_utils
|
|
16
|
-
from ..
|
|
16
|
+
from ..optics.fov_volume_list import FovVolumeList
|
|
17
17
|
|
|
18
18
|
from ..utils import (quantify, quantity_from_table, from_currsys, check_keys,
|
|
19
19
|
figure_factory, get_logger)
|
|
@@ -116,12 +116,12 @@ class ApertureMask(Effect):
|
|
|
116
116
|
|
|
117
117
|
def apply_to(self, obj, **kwargs):
|
|
118
118
|
"""See parent docstring."""
|
|
119
|
-
if isinstance(obj,
|
|
119
|
+
if isinstance(obj, FovVolumeList):
|
|
120
120
|
logger.debug("Executing %s, FoV setup", self.meta['name'])
|
|
121
121
|
x = quantity_from_table("x", self.table,
|
|
122
|
-
u.arcsec).
|
|
122
|
+
u.arcsec).to_value(u.arcsec)
|
|
123
123
|
y = quantity_from_table("y", self.table,
|
|
124
|
-
u.arcsec).
|
|
124
|
+
u.arcsec).to_value(u.arcsec)
|
|
125
125
|
obj.shrink(["x", "y"], ([min(x), max(x)], [min(y), max(y)]))
|
|
126
126
|
|
|
127
127
|
# ..todo: HUGE HACK - Get rid of this!
|
|
@@ -156,8 +156,8 @@ class ApertureMask(Effect):
|
|
|
156
156
|
|
|
157
157
|
def get_header(self):
|
|
158
158
|
self.meta = from_currsys(self.meta, self.cmds)
|
|
159
|
-
x = quantity_from_table("x", self.table, u.arcsec).
|
|
160
|
-
y = quantity_from_table("y", self.table, u.arcsec).
|
|
159
|
+
x = quantity_from_table("x", self.table, u.arcsec).to_value(u.deg)
|
|
160
|
+
y = quantity_from_table("y", self.table, u.arcsec).to_value(u.deg)
|
|
161
161
|
pix_scale_deg = self.meta["pixel_scale"] / 3600.
|
|
162
162
|
header = imp_utils.header_from_list_of_xy(x, y, pix_scale_deg)
|
|
163
163
|
header["APERTURE"] = self.meta["id"]
|
|
@@ -180,8 +180,8 @@ class ApertureMask(Effect):
|
|
|
180
180
|
self.meta = from_currsys(self.meta, self.cmds)
|
|
181
181
|
|
|
182
182
|
if self.meta["no_mask"] is False:
|
|
183
|
-
x = quantity_from_table("x", self.table, u.arcsec).
|
|
184
|
-
y = quantity_from_table("y", self.table, u.arcsec).
|
|
183
|
+
x = quantity_from_table("x", self.table, u.arcsec).to_value(u.deg)
|
|
184
|
+
y = quantity_from_table("y", self.table, u.arcsec).to_value(u.deg)
|
|
185
185
|
pixel_scale_deg = self.meta["pixel_scale"] / 3600.
|
|
186
186
|
mask = mask_from_coords(x, y, pixel_scale_deg)
|
|
187
187
|
else:
|
|
@@ -298,7 +298,7 @@ class ApertureList(Effect):
|
|
|
298
298
|
|
|
299
299
|
def apply_to(self, obj, **kwargs):
|
|
300
300
|
"""See parent docstring."""
|
|
301
|
-
if isinstance(obj,
|
|
301
|
+
if isinstance(obj, FovVolumeList):
|
|
302
302
|
logger.debug("Executing %s, FoV setup", self.meta['name'])
|
|
303
303
|
new_vols = []
|
|
304
304
|
for row in self.table:
|
|
@@ -16,7 +16,7 @@ import numpy as np
|
|
|
16
16
|
from astropy import units as u
|
|
17
17
|
from astropy.table import Table
|
|
18
18
|
|
|
19
|
-
from ..
|
|
19
|
+
from ..optics.fov_volume_list import FovVolumeList
|
|
20
20
|
from .effects import Effect
|
|
21
21
|
from .apertures import ApertureMask
|
|
22
22
|
from ..optics.image_plane_utils import header_from_list_of_xy, calc_footprint
|
|
@@ -148,24 +148,25 @@ class DetectorList(Effect):
|
|
|
148
148
|
self.meta["y_size_unit"] = self.meta["yhw_unit"]
|
|
149
149
|
|
|
150
150
|
def apply_to(self, obj, **kwargs):
|
|
151
|
-
if isinstance(obj,
|
|
151
|
+
if not isinstance(obj, FovVolumeList):
|
|
152
|
+
return obj
|
|
152
153
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
hdr = self.image_plane_header
|
|
155
|
+
xy_mm = calc_footprint(hdr, "D")
|
|
156
|
+
pixel_size = hdr["CDELT1D"] # mm
|
|
157
|
+
pixel_scale = kwargs.get("pixel_scale", self.meta["pixel_scale"]) # ["]
|
|
158
|
+
pixel_scale = from_currsys(pixel_scale, self.cmds)
|
|
158
159
|
|
|
159
|
-
|
|
160
|
-
|
|
160
|
+
# x["] = x[mm] * ["] / [mm]
|
|
161
|
+
xy_sky = xy_mm * pixel_scale / pixel_size
|
|
161
162
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
obj.shrink(axis=["x", "y"],
|
|
164
|
+
values=(tuple(zip(xy_sky.min(axis=0),
|
|
165
|
+
xy_sky.max(axis=0)))))
|
|
165
166
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
lims = np.array((xy_mm.min(axis=0), xy_mm.max(axis=0)))
|
|
168
|
+
keys = ["xd_min", "xd_max", "yd_min", "yd_max"]
|
|
169
|
+
obj.detector_limits = dict(zip(keys, lims.T.flatten()))
|
|
169
170
|
|
|
170
171
|
return obj
|
|
171
172
|
|
|
@@ -221,10 +222,10 @@ class DetectorList(Effect):
|
|
|
221
222
|
y_det_min = np.min(ycen - dy)
|
|
222
223
|
y_det_max = np.max(ycen + dy)
|
|
223
224
|
|
|
224
|
-
x_det = [x_det_min.
|
|
225
|
-
y_det = [y_det_min.
|
|
225
|
+
x_det = [x_det_min.to_value(u.mm), x_det_max.to_value(u.mm)]
|
|
226
|
+
y_det = [y_det_min.to_value(u.mm), y_det_max.to_value(u.mm)]
|
|
226
227
|
|
|
227
|
-
pixel_size = pixel_size.
|
|
228
|
+
pixel_size = pixel_size.to_value(u.mm)
|
|
228
229
|
hdr = header_from_list_of_xy(x_det, y_det, pixel_size, "D")
|
|
229
230
|
hdr["IMGPLANE"] = self.image_plane_id
|
|
230
231
|
|
|
@@ -7,7 +7,6 @@ from dataclasses import dataclass, field, InitVar, fields
|
|
|
7
7
|
from typing import NewType, ClassVar
|
|
8
8
|
|
|
9
9
|
from .data_container import DataContainer
|
|
10
|
-
from .. import base_classes as bc
|
|
11
10
|
from ..utils import from_currsys, write_report
|
|
12
11
|
from ..reports.rst_utils import table_to_rst
|
|
13
12
|
|
|
@@ -57,15 +56,8 @@ class Effect:
|
|
|
57
56
|
self.meta.update(kwargs)
|
|
58
57
|
|
|
59
58
|
def apply_to(self, obj, **kwargs):
|
|
60
|
-
"""
|
|
61
|
-
|
|
62
|
-
bc.FieldOfViewBase, bc.ImagePlaneBase,
|
|
63
|
-
bc.DetectorBase)):
|
|
64
|
-
raise ValueError("object must one of the following: FOVSetupBase, "
|
|
65
|
-
"Source, FieldOfView, ImagePlane, Detector: "
|
|
66
|
-
f"{type(obj)}")
|
|
67
|
-
|
|
68
|
-
return obj
|
|
59
|
+
"""Apply the effect to the corresponding object."""
|
|
60
|
+
raise NotImplementedError("Subclasses should implement this.")
|
|
69
61
|
|
|
70
62
|
def fov_grid(self, which="", **kwargs):
|
|
71
63
|
"""
|
|
@@ -23,6 +23,6 @@ logger = get_logger(__name__)
|
|
|
23
23
|
from .electrons import LinearityCurve, Quantization
|
|
24
24
|
from .noise import (Bias, PoorMansHxRGReadoutNoise, BasicReadoutNoise,
|
|
25
25
|
ShotNoise, DarkCurrent)
|
|
26
|
-
from .exposure import AutoExposure, SummedExposure
|
|
26
|
+
from .exposure import AutoExposure, SummedExposure, ExposureOutput
|
|
27
27
|
from .pixels import ReferencePixelBorder, BinnedImage, UnequalBinnedImage
|
|
28
28
|
from .dmps import DetectorModePropertiesSetter
|
|
@@ -6,7 +6,7 @@ from typing import ClassVar
|
|
|
6
6
|
import numpy as np
|
|
7
7
|
|
|
8
8
|
from .. import Effect
|
|
9
|
-
from ...
|
|
9
|
+
from ...optics import ImagePlane
|
|
10
10
|
from ...utils import from_currsys, check_keys, pretty_print_dict
|
|
11
11
|
from . import logger
|
|
12
12
|
|
|
@@ -75,7 +75,7 @@ class DetectorModePropertiesSetter(Effect):
|
|
|
75
75
|
mode_name = kwargs.get("detector_readout_mode",
|
|
76
76
|
from_currsys("!OBS.detector_readout_mode",
|
|
77
77
|
self.cmds))
|
|
78
|
-
if isinstance(obj,
|
|
78
|
+
if isinstance(obj, ImagePlane) and mode_name == "auto":
|
|
79
79
|
mode_name = self.select_mode(obj, **kwargs)
|
|
80
80
|
logger.info("Detector mode set to %s", mode_name)
|
|
81
81
|
|
|
@@ -13,7 +13,7 @@ from typing import ClassVar
|
|
|
13
13
|
import numpy as np
|
|
14
14
|
|
|
15
15
|
from .. import Effect
|
|
16
|
-
from ...
|
|
16
|
+
from ...detector import Detector
|
|
17
17
|
from ...utils import from_currsys, figure_factory, check_keys
|
|
18
18
|
from . import logger
|
|
19
19
|
|
|
@@ -60,17 +60,19 @@ class LinearityCurve(Effect):
|
|
|
60
60
|
check_keys(self.meta, self.required_keys, action="error")
|
|
61
61
|
|
|
62
62
|
def apply_to(self, obj, **kwargs):
|
|
63
|
-
if isinstance(obj,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
63
|
+
if not isinstance(obj, Detector):
|
|
64
|
+
return obj
|
|
65
|
+
|
|
66
|
+
ndit = from_currsys(self.meta["ndit"], self.cmds)
|
|
67
|
+
if self.table is not None:
|
|
68
|
+
incident = self.table["incident"] * ndit
|
|
69
|
+
measured = self.table["measured"] * ndit
|
|
70
|
+
else:
|
|
71
|
+
incident = np.asarray(from_currsys(self.meta["incident"],
|
|
72
|
+
self.cmds)) * ndit
|
|
73
|
+
measured = np.asarray(from_currsys(self.meta["measured"],
|
|
74
|
+
self.cmds)) * ndit
|
|
75
|
+
obj._hdu.data = np.interp(obj._hdu.data, incident, measured)
|
|
74
76
|
|
|
75
77
|
return obj
|
|
76
78
|
|
|
@@ -118,7 +120,7 @@ class Quantization(Effect):
|
|
|
118
120
|
return True
|
|
119
121
|
|
|
120
122
|
def apply_to(self, obj, **kwargs):
|
|
121
|
-
if not isinstance(obj,
|
|
123
|
+
if not isinstance(obj, Detector):
|
|
122
124
|
return obj
|
|
123
125
|
|
|
124
126
|
if not self._should_apply():
|
|
@@ -6,7 +6,8 @@ from typing import ClassVar
|
|
|
6
6
|
import numpy as np
|
|
7
7
|
|
|
8
8
|
from .. import Effect
|
|
9
|
-
from ...
|
|
9
|
+
from ...optics import ImagePlane
|
|
10
|
+
from ...detector import Detector
|
|
10
11
|
from ...utils import from_currsys, check_keys
|
|
11
12
|
from . import logger
|
|
12
13
|
|
|
@@ -129,8 +130,8 @@ class AutoExposure(Effect):
|
|
|
129
130
|
return dit, ndit
|
|
130
131
|
|
|
131
132
|
def apply_to(self, obj, **kwargs):
|
|
132
|
-
if not isinstance(obj, (
|
|
133
|
-
# TODO: figure out why this needs to be applied to
|
|
133
|
+
if not isinstance(obj, (ImagePlane, Detector)):
|
|
134
|
+
# TODO: figure out why this needs to be applied to ImagePlane?
|
|
134
135
|
return obj
|
|
135
136
|
|
|
136
137
|
exptime = kwargs.pop("exptime",
|
|
@@ -184,6 +185,45 @@ class AutoExposure(Effect):
|
|
|
184
185
|
return obj
|
|
185
186
|
|
|
186
187
|
|
|
188
|
+
class ExposureOutput(Effect):
|
|
189
|
+
"""Return average or sum of ``ndit`` subexposures."""
|
|
190
|
+
|
|
191
|
+
required_keys = {"dit", "ndit"}
|
|
192
|
+
z_order: ClassVar[tuple[int, ...]] = (861,)
|
|
193
|
+
_current_str = "current_mode"
|
|
194
|
+
|
|
195
|
+
def __init__(self, mode="average", **kwargs):
|
|
196
|
+
super().__init__(**kwargs)
|
|
197
|
+
self.meta.update(kwargs)
|
|
198
|
+
self.modes = ("average", "sum")
|
|
199
|
+
if mode not in self.modes:
|
|
200
|
+
raise ValueError("mode must be one of", self.modes)
|
|
201
|
+
self.current_mode = mode
|
|
202
|
+
self.meta["current_mode"] = self.current_mode
|
|
203
|
+
check_keys(self.meta, self.required_keys, action="error")
|
|
204
|
+
|
|
205
|
+
def apply_to(self, obj, **kwargs):
|
|
206
|
+
if not isinstance(obj, Detector):
|
|
207
|
+
return obj
|
|
208
|
+
|
|
209
|
+
dit = from_currsys(self.meta["dit"], self.cmds)
|
|
210
|
+
ndit = from_currsys(self.meta["ndit"], self.cmds)
|
|
211
|
+
logger.debug("Exposure: DIT = %s s, NDIT = %s", dit, ndit)
|
|
212
|
+
|
|
213
|
+
if self.current_mode == "average":
|
|
214
|
+
obj._hdu.data /= ndit
|
|
215
|
+
|
|
216
|
+
return obj
|
|
217
|
+
|
|
218
|
+
def set_mode(self, new_mode):
|
|
219
|
+
"""Set new mode for ExposureOutput (average or sum)"""
|
|
220
|
+
if new_mode in self.modes:
|
|
221
|
+
self.current_mode = new_mode
|
|
222
|
+
self.meta["current_mode"] = self.current_mode
|
|
223
|
+
else:
|
|
224
|
+
logger.warning("Trying to set to unknown mode.")
|
|
225
|
+
|
|
226
|
+
|
|
187
227
|
class SummedExposure(Effect):
|
|
188
228
|
"""Simulates a summed stack of ``ndit`` exposures."""
|
|
189
229
|
|
|
@@ -197,7 +237,7 @@ class SummedExposure(Effect):
|
|
|
197
237
|
check_keys(self.meta, self.required_keys, action="error")
|
|
198
238
|
|
|
199
239
|
def apply_to(self, obj, **kwargs):
|
|
200
|
-
if not isinstance(obj,
|
|
240
|
+
if not isinstance(obj, Detector):
|
|
201
241
|
return obj
|
|
202
242
|
|
|
203
243
|
dit = from_currsys(self.meta["dit"], self.cmds)
|
|
@@ -7,7 +7,7 @@ import numpy as np
|
|
|
7
7
|
from astropy.io import fits
|
|
8
8
|
|
|
9
9
|
from .. import Effect
|
|
10
|
-
from ...
|
|
10
|
+
from ...detector import Detector
|
|
11
11
|
from ...utils import from_currsys, figure_factory, check_keys, real_colname
|
|
12
12
|
from . import logger
|
|
13
13
|
|
|
@@ -24,10 +24,12 @@ class Bias(Effect):
|
|
|
24
24
|
check_keys(self.meta, self.required_keys, action="error")
|
|
25
25
|
|
|
26
26
|
def apply_to(self, obj, **kwargs):
|
|
27
|
-
if isinstance(obj,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
if not isinstance(obj, Detector):
|
|
28
|
+
return obj
|
|
29
|
+
|
|
30
|
+
biaslevel = from_currsys(self.meta["bias"], self.cmds)
|
|
31
|
+
# Can't do in-place because of Quantization data type conflicts.
|
|
32
|
+
obj._hdu.data = obj._hdu.data + biaslevel
|
|
31
33
|
|
|
32
34
|
return obj
|
|
33
35
|
|
|
@@ -53,28 +55,30 @@ class PoorMansHxRGReadoutNoise(Effect):
|
|
|
53
55
|
check_keys(self.meta, self.required_keys, action="error")
|
|
54
56
|
|
|
55
57
|
def apply_to(self, det, **kwargs):
|
|
56
|
-
if isinstance(det,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
58
|
+
if not isinstance(det, Detector):
|
|
59
|
+
return det
|
|
60
|
+
|
|
61
|
+
self.meta["random_seed"] = from_currsys(self.meta["random_seed"],
|
|
62
|
+
self.cmds)
|
|
63
|
+
if self.meta["random_seed"] is not None:
|
|
64
|
+
np.random.seed(self.meta["random_seed"])
|
|
65
|
+
|
|
66
|
+
self.meta = from_currsys(self.meta, self.cmds)
|
|
67
|
+
ron_keys = ["noise_std", "n_channels", "channel_fraction",
|
|
68
|
+
"line_fraction", "pedestal_fraction", "read_fraction"]
|
|
69
|
+
ron_kwargs = {key: self.meta[key] for key in ron_keys}
|
|
70
|
+
ron_kwargs["image_shape"] = det._hdu.data.shape
|
|
71
|
+
|
|
72
|
+
ron_frame = _make_ron_frame(**ron_kwargs)
|
|
73
|
+
stacked_ron_frame = np.zeros_like(ron_frame)
|
|
74
|
+
for i in range(self.meta["ndit"]):
|
|
75
|
+
dx = np.random.randint(0, ron_frame.shape[1])
|
|
76
|
+
dy = np.random.randint(0, ron_frame.shape[0])
|
|
77
|
+
stacked_ron_frame += np.roll(ron_frame, (dy, dx), axis=(0, 1))
|
|
78
|
+
|
|
79
|
+
# TODO: this .T is ugly. Work out where things are getting switched and remove it!
|
|
80
|
+
# Can't do in-place because of Quantization data type conflicts.
|
|
81
|
+
det._hdu.data = det._hdu.data + stacked_ron_frame.T
|
|
78
82
|
|
|
79
83
|
return det
|
|
80
84
|
|
|
@@ -103,17 +107,19 @@ class BasicReadoutNoise(Effect):
|
|
|
103
107
|
check_keys(self.meta, self.required_keys, action="error")
|
|
104
108
|
|
|
105
109
|
def apply_to(self, det, **kwargs):
|
|
106
|
-
if isinstance(det,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
110
|
+
if not isinstance(det, Detector):
|
|
111
|
+
return det
|
|
112
|
+
|
|
113
|
+
ndit = from_currsys(self.meta["ndit"], self.cmds)
|
|
114
|
+
ron = from_currsys(self.meta["noise_std"], self.cmds)
|
|
115
|
+
noise_std = ron * np.sqrt(float(ndit))
|
|
116
|
+
|
|
117
|
+
random_seed = from_currsys(self.meta["random_seed"], self.cmds)
|
|
118
|
+
if random_seed is not None:
|
|
119
|
+
np.random.seed(random_seed)
|
|
120
|
+
# Can't do in-place because of Quantization data type conflicts.
|
|
121
|
+
det._hdu.data = det._hdu.data + np.random.normal(
|
|
122
|
+
loc=0, scale=noise_std, size=det._hdu.data.shape)
|
|
117
123
|
|
|
118
124
|
return det
|
|
119
125
|
|
|
@@ -137,7 +143,7 @@ class ShotNoise(Effect):
|
|
|
137
143
|
self.meta.update(kwargs)
|
|
138
144
|
|
|
139
145
|
def apply_to(self, det, **kwargs):
|
|
140
|
-
if not isinstance(det,
|
|
146
|
+
if not isinstance(det, Detector):
|
|
141
147
|
return det
|
|
142
148
|
|
|
143
149
|
self.meta["random_seed"] = from_currsys(self.meta["random_seed"],
|
|
@@ -213,21 +219,23 @@ class DarkCurrent(Effect):
|
|
|
213
219
|
check_keys(self.meta, self.required_keys, action="error")
|
|
214
220
|
|
|
215
221
|
def apply_to(self, obj, **kwargs):
|
|
216
|
-
if isinstance(obj,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
222
|
+
if not isinstance(obj, Detector):
|
|
223
|
+
return obj
|
|
224
|
+
|
|
225
|
+
if isinstance(from_currsys(self.meta["value"], self.cmds), dict):
|
|
226
|
+
dtcr_id = obj.meta[real_colname("id", obj.meta)]
|
|
227
|
+
dark = from_currsys(self.meta["value"][dtcr_id], self.cmds)
|
|
228
|
+
elif isinstance(from_currsys(self.meta["value"], self.cmds), float):
|
|
229
|
+
dark = from_currsys(self.meta["value"], self.cmds)
|
|
230
|
+
else:
|
|
231
|
+
raise ValueError("<DarkCurrent>.meta['value'] must be either "
|
|
232
|
+
f"dict or float, but is {self.meta['value']}")
|
|
233
|
+
|
|
234
|
+
dit = from_currsys(self.meta["dit"], self.cmds)
|
|
235
|
+
ndit = from_currsys(self.meta["ndit"], self.cmds)
|
|
236
|
+
|
|
237
|
+
# Can't do in-place because of Quantization data type conflicts.
|
|
238
|
+
obj._hdu.data = obj._hdu.data + dark * dit * ndit
|
|
231
239
|
|
|
232
240
|
return obj
|
|
233
241
|
|