Ejemplo n.º 1
0
def main():
    logging.basicConfig(format="%(message)s", level=logging.INFO)
    arg_parser = argparse.ArgumentParser()
    arg_parser.add_argument('catalog_csv')
    args = arg_parser.parse_args()

    def celeste_field_test(test_case):
        generate_field(test_case, args.catalog_csv)

    output_label = os.path.splitext(os.path.basename(
        args.catalog_csv))[0] + '_images'
    generate_test_image.generate_fits_file(output_label, [celeste_field_test])
Ejemplo n.º 2
0
def main():
    logging.basicConfig(format="%(message)s", level=logging.INFO)
    final_filename = generate_test_image.generate_fits_file(OUTPUT_LABEL, TEST_CASE_CALLBACKS)
    generate_test_image.write_latest_filename(OUTPUT_LABEL, os.path.basename(final_filename))