示例#1
0
def test_demo11():
    """Check that demo11 makes the same image using demo11.py and demo11.yaml.
    """
    import demo11
    print('Running demo11.py')
    demo11.main([])
    logger = logging.getLogger('galsim')
    logger.setLevel(logging.WARNING)
    config = galsim.config.ReadConfig('demo11.yaml', logger=logger)[0]
    print('Running demo11.yaml')
    galsim.config.Process(config, logger=logger, except_abort=True)
    assert check_same('output/tabulated_power_spectrum.fits.fz',
                      'output_yaml/tabulated_power_spectrum.fits.fz')
示例#2
0
def test_demo11():
    """Check that demo11 makes the same image using demo11.py and demo11.yaml.
    """
    import demo11

    print("Running demo11.py")
    demo11.main([])
    logging.basicConfig(format="%(message)s", level=logging.INFO, stream=sys.stdout)
    logger = logging.getLogger("galsim")
    config = galsim.config.ReadConfig("demo11.yaml", logger=logger)[0]
    print("Running demo11.yaml")
    galsim.config.Process(config, logger=logger)
    assert check_same("output/tabulated_power_spectrum.fits.fz", "output_yaml/tabulated_power_spectrum.fits.fz")
示例#3
0
def test_demo11():
    """Check that demo11 makes the same image using demo11.py and demo11.yaml.
    """
    import demo11
    print('Running demo11.py')
    demo11.main([])
    logger = logging.getLogger('galsim')
    logger.setLevel(logging.WARNING)
    config = galsim.config.ReadConfig('demo11.yaml', logger=logger)[0]
    print('Running demo11.yaml')
    galsim.config.Process(config, logger=logger, except_abort=True)
    assert check_same('output/tabulated_power_spectrum.fits.fz',
                      'output_yaml/tabulated_power_spectrum.fits.fz')
示例#4
0
def test_demo11():
    """Check that demo11 makes the same image using demo11.py and demo11.yaml.
    """
    import demo11
    print('Running demo11.py')
    demo11.main([])
    logging.basicConfig(format="%(message)s",
                        level=logging.INFO,
                        stream=sys.stdout)
    logger = logging.getLogger('galsim')
    config = galsim.config.ReadConfig('demo11.yaml', logger=logger)[0]
    print('Running demo11.yaml')
    galsim.config.Process(config, logger=logger)
    assert check_same('output/tabulated_power_spectrum.fits.fz',
                      'output_yaml/tabulated_power_spectrum.fits.fz')