Commit 7833209d authored by Chen Yili's avatar Chen Yili
Browse files

Update tests/test_camera.py, tests/test_comicray.py, tests/test_io.py,...

Update tests/test_camera.py, tests/test_comicray.py, tests/test_io.py, tests/test_main.py, tests/test_optics.py, tests/test_target.py
parent a89b057b
Pipeline #4108 failed with stage
in 0 seconds
import unittest import unittest
from CpicImgSim.camera import EMCCD from csst_cpic_sim.camera import EMCCD
import numpy as np import numpy as np
......
import unittest import unittest
from CpicImgSim.camera import CosmicRayFrameMaker, sky_frame_maker from csst_cpic_sim.camera import CosmicRayFrameMaker, sky_frame_maker
from CpicImgSim.target import star_photlam from csst_cpic_sim.target import star_photlam
from CpicImgSim.optics import filter_throughput from csst_cpic_sim.optics import filter_throughput
import numpy as np import numpy as np
......
import unittest import unittest
from unittest import mock from unittest import mock
from CpicImgSim.io import obsid_parser, primary_hdu, frame_header, save_fits_simple from csst_cpic_sim.io import obsid_parser, primary_hdu, frame_header, save_fits_simple
import CpicImgSim.io as io import csst_cpic_sim.io as io
from astropy.io import fits from astropy.io import fits
import numpy as np import numpy as np
import yaml import yaml
......
import unittest import unittest
from CpicImgSim import observation_simulation, quick_run from csst_cpic_sim import observation_simulation, quick_run
class TestMain(unittest.TestCase): class TestMain(unittest.TestCase):
......
import unittest import unittest
from CpicImgSim.target import star_photlam from csst_cpic_sim.target import star_photlam
from CpicImgSim.optics import make_focus_image, focal_mask, filter_throughput from csst_cpic_sim.optics import make_focus_image, focal_mask, filter_throughput
from CpicImgSim.config import which_focalplane, S from csst_cpic_sim.config import which_focalplane, S
import numpy as np import numpy as np
......
import unittest import unittest
from CpicImgSim.target import _sptype2num, hybrid_albedo_spectrum, star_photlam, spectrum_generator, planet_contrast, extract_target_x_y from csst_cpic_sim.target import _sptype2num, hybrid_albedo_spectrum, star_photlam, spectrum_generator, planet_contrast, extract_target_x_y
from CpicImgSim.config import S from csst_cpic_sim.config import S
from math import pi from math import pi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment