예제 #1
0
def test_demo5():
    """Check that demo5 makes the same image using demo5.py and demo5.yaml.
    """
    import demo5
    print('Running demo5.py')
    demo5.main([])
    logger = logging.getLogger('galsim')
    logger.setLevel(logging.WARNING)
    config = galsim.config.ReadConfig('demo5.yaml', logger=logger)[0]
    print('Running demo5.yaml')
    galsim.config.Process(config, logger=logger, except_abort=True)
    assert check_same('output/g08_psf.fits', 'output_yaml/g08_psf.fits')
    assert check_same('output/g08_gal.fits', 'output_yaml/g08_gal.fits')
예제 #2
0
def test_demo5():
    """Check that demo5 makes the same image using demo5.py and demo5.yaml.
    """
    import demo5
    print('Running demo5.py')
    demo5.main([])
    logger = logging.getLogger('galsim')
    logger.setLevel(logging.WARNING)
    config = galsim.config.ReadConfig('demo5.yaml', logger=logger)[0]
    print('Running demo5.yaml')
    galsim.config.Process(config, logger=logger, except_abort=True)
    assert check_same('output/g08_psf.fits', 'output_yaml/g08_psf.fits')
    assert check_same('output/g08_gal.fits', 'output_yaml/g08_gal.fits')
예제 #3
0
def test_demo5():
    """Check that demo5 makes the same image using demo5.py and demo5.yaml.
    """
    import demo5

    print("Running demo5.py")
    demo5.main([])
    logging.basicConfig(format="%(message)s", level=logging.INFO, stream=sys.stdout)
    logger = logging.getLogger("galsim")
    config = galsim.config.ReadConfig("demo5.yaml", logger=logger)[0]
    print("Running demo5.yaml")
    galsim.config.Process(config, logger=logger)
    assert check_same("output/g08_psf.fits", "output_yaml/g08_psf.fits")
    assert check_same("output/g08_gal.fits", "output_yaml/g08_gal.fits")
예제 #4
0
def test_demo5():
    """Check that demo5 makes the same image using demo5.py and demo5.yaml.
    """
    import demo5
    print('Running demo5.py')
    demo5.main([])
    logging.basicConfig(format="%(message)s",
                        level=logging.INFO,
                        stream=sys.stdout)
    logger = logging.getLogger('galsim')
    config = galsim.config.ReadConfig('demo5.yaml', logger=logger)[0]
    print('Running demo5.yaml')
    galsim.config.Process(config, logger=logger)
    assert check_same('output/g08_psf.fits', 'output_yaml/g08_psf.fits')
    assert check_same('output/g08_gal.fits', 'output_yaml/g08_gal.fits')
예제 #5
0
파일: main.py 프로젝트: 5l1v3r1/ImageRAR
import demo5

demo5.main("Boomer")
예제 #6
0
import demo5

demo5.main("Carberra")