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')
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")
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')