Esempio n. 1
0
def test_demo8():
    """Check that demo8 makes the same image using demo8.py and demo8.yaml.
    """
    import demo8
    print('Running demo8.py')
    demo8.main([])
    logger = logging.getLogger('galsim')
    logger.setLevel(logging.WARNING)
    configs = galsim.config.ReadConfig('demo8.yaml', logger=logger)
    print('Running demo8.yaml pass #1')
    galsim.config.Process(configs[0], logger=logger, except_abort=True)
    print('Running demo8.yaml pass #2')
    galsim.config.Process(configs[1], logger=logger, except_abort=True)
    assert check_same('output/bpd_single.fits', 'output_yaml/bpd_single.fits')
    assert check_same('output/bpd_multi.fits', 'output_yaml/bpd_multi.fits')
Esempio n. 2
0
def test_demo8():
    """Check that demo8 makes the same image using demo8.py and demo8.yaml.
    """
    import demo8
    print('Running demo8.py')
    demo8.main([])
    logger = logging.getLogger('galsim')
    logger.setLevel(logging.WARNING)
    configs = galsim.config.ReadConfig('demo8.yaml', logger=logger)
    print('Running demo8.yaml pass #1')
    galsim.config.Process(configs[0], logger=logger, except_abort=True)
    print('Running demo8.yaml pass #2')
    galsim.config.Process(configs[1], logger=logger, except_abort=True)
    assert check_same('output/bpd_single.fits', 'output_yaml/bpd_single.fits')
    assert check_same('output/bpd_multi.fits', 'output_yaml/bpd_multi.fits')
Esempio n. 3
0
def test_demo8():
    """Check that demo8 makes the same image using demo8.py and demo8.yaml.
    """
    import demo8

    print("Running demo8.py")
    demo8.main([])
    logging.basicConfig(format="%(message)s", level=logging.INFO, stream=sys.stdout)
    logger = logging.getLogger("galsim")
    configs = galsim.config.ReadConfig("demo8.yaml", logger=logger)
    print("Running demo8.yaml pass #1")
    galsim.config.Process(configs[0], logger=logger)
    print("Running demo8.yaml pass #2")
    galsim.config.Process(configs[1], logger=logger)
    assert check_same("output/bpd_single.fits", "output_yaml/bpd_single.fits")
    assert check_same("output/bpd_multi.fits", "output_yaml/bpd_multi.fits")
Esempio n. 4
0
def test_demo8():
    """Check that demo8 makes the same image using demo8.py and demo8.yaml.
    """
    import demo8
    print('Running demo8.py')
    demo8.main([])
    logging.basicConfig(format="%(message)s",
                        level=logging.INFO,
                        stream=sys.stdout)
    logger = logging.getLogger('galsim')
    configs = galsim.config.ReadConfig('demo8.yaml', logger=logger)
    print('Running demo8.yaml pass #1')
    galsim.config.Process(configs[0], logger=logger)
    print('Running demo8.yaml pass #2')
    galsim.config.Process(configs[1], logger=logger)
    assert check_same('output/bpd_single.fits', 'output_yaml/bpd_single.fits')
    assert check_same('output/bpd_multi.fits', 'output_yaml/bpd_multi.fits')