def test_demo6(): """Check that demo6 makes the same image using demo6.py and demo6.yaml. """ import demo6 print('Running demo6.py') demo6.main([]) logger = logging.getLogger('galsim') logger.setLevel(logging.WARNING) configs = galsim.config.ReadConfig('demo6.yaml', logger=logger) print('Running demo6.yaml pass #1') galsim.config.Process(configs[0], logger=logger, except_abort=True) print('Running demo6.yaml pass #2') galsim.config.Process(configs[1], logger=logger, except_abort=True) assert check_same('output/psf_real.fits', 'output_yaml/psf_real.fits') assert check_same('output/cube_real.fits', 'output_yaml/cube_real.fits')
def test_demo6(): """Check that demo6 makes the same image using demo6.py and demo6.yaml. """ import demo6 print("Running demo6.py") demo6.main([]) logging.basicConfig(format="%(message)s", level=logging.INFO, stream=sys.stdout) logger = logging.getLogger("galsim") configs = galsim.config.ReadConfig("demo6.yaml", logger=logger) print("Running demo6.yaml pass #1") galsim.config.Process(configs[0], logger=logger) print("Running demo6.yaml pass #2") galsim.config.Process(configs[1], logger=logger) assert check_same("output/psf_real.fits", "output_yaml/psf_real.fits") assert check_same("output/cube_real.fits", "output_yaml/cube_real.fits")
def test_demo6(): """Check that demo6 makes the same image using demo6.py and demo6.yaml. """ import demo6 print('Running demo6.py') demo6.main([]) logging.basicConfig(format="%(message)s", level=logging.INFO, stream=sys.stdout) logger = logging.getLogger('galsim') configs = galsim.config.ReadConfig('demo6.yaml', logger=logger) print('Running demo6.yaml pass #1') galsim.config.Process(configs[0], logger=logger) print('Running demo6.yaml pass #2') galsim.config.Process(configs[1], logger=logger) assert check_same('output/psf_real.fits', 'output_yaml/psf_real.fits') assert check_same('output/cube_real.fits', 'output_yaml/cube_real.fits')