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

    print("Running demo3.py")
    demo3.main([])
    logging.basicConfig(format="%(message)s", level=logging.INFO, stream=sys.stdout)
    logger = logging.getLogger("galsim")
    config = galsim.config.ReadConfig("demo3.yaml", logger=logger)[0]
    print("Running demo3.yaml")
    galsim.config.Process(config, logger=logger)
    assert check_same("output/demo3.fits", "output_yaml/demo3.fits")
    assert check_same("output/demo3_epsf.fits", "output_yaml/demo3_epsf.fits")
Exemple #4
0
def test_demo3():
    """Check that demo3 makes the same image using demo3.py and demo3.yaml.
    """
    import demo3
    print('Running demo3.py')
    demo3.main([])
    logging.basicConfig(format="%(message)s",
                        level=logging.INFO,
                        stream=sys.stdout)
    logger = logging.getLogger('galsim')
    config = galsim.config.ReadConfig('demo3.yaml', logger=logger)[0]
    print('Running demo3.yaml')
    galsim.config.Process(config, logger=logger)
    assert check_same('output/demo3.fits', 'output_yaml/demo3.fits')
    assert check_same('output/demo3_epsf.fits', 'output_yaml/demo3_epsf.fits')