Beispiel #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')
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')
Beispiel #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")
Beispiel #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')
Beispiel #5
0
import demo5

demo5.main("Boomer")
Beispiel #6
0
import demo5

demo5.main("Carberra")