Exemplo n.º 1
0
        tags = {'reference': compare_to, 'comparison': 'new pre-delivery'}

        compare.compare_siaf(pre_delivery_siaf,
                             reference_siaf_input=ref_siaf,
                             fractional_tolerance=1e-6,
                             report_dir=pre_delivery_dir,
                             tags=tags)

        compare.compare_transformation_roundtrip(pre_delivery_siaf,
                                                 reference_siaf_input=ref_siaf,
                                                 tags=tags,
                                                 report_dir=pre_delivery_dir)

        compare.compare_inspection_figures(pre_delivery_siaf,
                                           reference_siaf_input=ref_siaf,
                                           report_dir=pre_delivery_dir,
                                           tags=tags,
                                           mark_ref=True)

        create_jira_plots = False
        if create_jira_plots:
            # make figures for JWSTSIAF-129 Jira ticket
            # selected_aperture_names = [['NRCA1_GRISMTS', 'NRCA5_GRISM_F444W'],
            #                            ['NRCA1_GRISMTS64', 'NRCA5_GRISM64_F444W'],
            #                            ['NRCA1_GRISMTS128', 'NRCA5_GRISM128_F444W'],
            #                            ['NRCA1_GRISMTS256', 'NRCA5_GRISM256_F444W'],
            #                            ['NRCA5_TAGRISMTS_SCI_F444W'],
            #                            ]

            # make figures for JWSTSIAF-61 Jira ticket
            selected_aperture_names = [
Exemplo n.º 2
0
        compare.compare_siaf(pre_delivery_siaf,
                             reference_siaf_input=ref_siaf,
                             fractional_tolerance=1e-6,
                             report_dir=pre_delivery_dir,
                             tags=tags)

        compare.compare_transformation_roundtrip(
            pre_delivery_siaf,
            reference_siaf_input=ref_siaf,
            tags=tags,
            report_dir=pre_delivery_dir,
        )

        compare.compare_inspection_figures(pre_delivery_siaf,
                                           reference_siaf_input=ref_siaf,
                                           report_dir=pre_delivery_dir,
                                           tags=tags)

    # run some tests on the new SIAF
    from pysiaf.tests import test_aperture
    print('\nRunning aperture_transforms test for pre_delivery_siaf')
    test_aperture.test_jwst_aperture_transforms([pre_delivery_siaf],
                                                verbose=False,
                                                threshold=0.04)
    print('\nRunning aperture_vertices test for pre_delivery_siaf')
    test_aperture.test_jwst_aperture_vertices([pre_delivery_siaf])

else:

    test_dir = os.path.join(JWST_TEMPORARY_DATA_ROOT, instrument,
                            'generate_test')
Exemplo n.º 3
0
        compare.compare_siaf(pre_delivery_siaf,
                             reference_siaf_input=ref_siaf,
                             fractional_tolerance=1e-6,
                             report_dir=pre_delivery_dir,
                             tags=tags)

        compare.compare_transformation_roundtrip(
            pre_delivery_siaf,
            reference_siaf_input=ref_siaf,
            tags=tags,
            report_dir=pre_delivery_dir,
        )

        compare.compare_inspection_figures(pre_delivery_siaf,
                                           reference_siaf_input=ref_siaf,
                                           report_dir=pre_delivery_dir,
                                           tags=tags,
                                           xlimits=(-210, -370),
                                           ylimits=(-780, -615))

    # run some tests on the new SIAF
    from pysiaf.tests import test_aperture
    print('\nRunning aperture_transforms test for pre_delivery_siaf')
    test_aperture.test_jwst_aperture_transforms([pre_delivery_siaf],
                                                verbose=False,
                                                threshold=0.04)
    print('\nRunning aperture_vertices test for pre_delivery_siaf')
    test_aperture.test_jwst_aperture_vertices([pre_delivery_siaf])

else:

    test_dir = os.path.join(JWST_TEMPORARY_DATA_ROOT, instrument,
Exemplo n.º 4
0
        tags = {'reference': compare_to, 'comparison': 'pre_delivery'}

        compare.compare_siaf(pre_delivery_siaf,
                             reference_siaf_input=ref_siaf,
                             fractional_tolerance=1e-6,
                             report_dir=pre_delivery_dir,
                             tags=tags)

        compare.compare_transformation_roundtrip(pre_delivery_siaf,
                                                 reference_siaf_input=ref_siaf,
                                                 tags=tags,
                                                 report_dir=pre_delivery_dir)

        compare.compare_inspection_figures(pre_delivery_siaf,
                                           reference_siaf_input=ref_siaf,
                                           report_dir=pre_delivery_dir,
                                           tags=tags,
                                           xlimits=(-360, -520),
                                           ylimits=(-440, -300))

    # run some tests on the new SIAF
    from pysiaf.tests import test_aperture
    print('\nRunning aperture_transforms test for pre_delivery_siaf')
    test_aperture.test_jwst_aperture_transforms([pre_delivery_siaf],
                                                verbose=False,
                                                threshold=0.04)
    print('\nRunning aperture_vertices test for pre_delivery_siaf')
    test_aperture.test_jwst_aperture_vertices([pre_delivery_siaf])

else:

    test_dir = os.path.join(JWST_TEMPORARY_DATA_ROOT, instrument,
Exemplo n.º 5
0
        tags = {'reference': compare_to, 'comparison': 'pre_delivery'}

        compare.compare_siaf(pre_delivery_siaf,
                             reference_siaf_input=ref_siaf,
                             fractional_tolerance=1e-6,
                             report_dir=pre_delivery_dir,
                             tags=tags)

        compare.compare_inspection_figures(pre_delivery_siaf,
                                           reference_siaf_input=ref_siaf,
                                           report_dir=pre_delivery_dir,
                                           tags=tags,
                                           skipped_aperture_type=['TRANSFORM'],
                                           selected_aperture_name=[
                                               'NRS1_FP1MIMF', 'NRS1_FP2MIMF',
                                               'NRS1_FP3MIMF', 'NRS2_FP4MIMF',
                                               'NRS2_FP5MIMF'
                                           ],
                                           mark_ref=True,
                                           xlimits=(100, 700),
                                           ylimits=(-700, -100),
                                           filename_appendix='MIMF_apertures')

        compare.compare_transformation_roundtrip(
            pre_delivery_siaf,
            reference_siaf_input=ref_siaf,
            tags=tags,
            report_dir=pre_delivery_dir,
            skipped_aperture_type=['TRANSFORM', 'SLIT'],
            selected_aperture_name=[
                'NRS1_FULL', 'NRS2_FULL', 'NRS1_FULL_OSS', 'NRS2_FULL_OSS'