Beispiel #1
0
    # ----------------------------------------------------------------------
    # set name and print progress
    name = 'cal_FF_RAW_spirou (dark_flat)'
    print(UNITTEST.format('\n' * 3, '=' * 50, '\n', test, name))
    # run test
    times[name] = utf.UNIT_TEST_CAL_FF_RAW(kind='dark_flat')
    test += 1

    # ----------------------------------------------------------------------
    # test cal_extract_RAW_spirou - hcone_dark
    # ----------------------------------------------------------------------
    # set name and print progress
    name = 'cal_extract_RAW_spirou (hcone_dark)'
    print(UNITTEST.format('\n' * 3, '=' * 50, '\n', test, name))
    # run test
    times[name] = utf.UNIT_TEST_CAL_EXTRACT(kind='hcone_dark', fiber='AB')
    test += 1

    # ----------------------------------------------------------------------
    # test cal_extract_RAW_spirou - dark_hcone
    # ----------------------------------------------------------------------
    # set name and print progress
    name = 'cal_extract_RAW_spirou (dark_hcone)'
    print(UNITTEST.format('\n' * 3, '=' * 50, '\n', test, name))
    # run test
    times[name] = utf.UNIT_TEST_CAL_EXTRACT(kind='dark_hcone', fiber='C')
    test += 1

    # ----------------------------------------------------------------------
    # test cal_extract_RAW_spirou - hcone_hcone AB
    # ----------------------------------------------------------------------
Beispiel #2
0
    # deal with comparison
    args = [name, ll, newoutputs, oldoutputs, errors, OLDPATH, filepath]
    newoutputs, oldoutputs, errors = utc.compare(*args)
    # append test
    test += 1

    # ----------------------------------------------------------------------
    # test cal_extract_RAW_spirou - fp_fp02a203.fits
    # ----------------------------------------------------------------------
    # set name and print progress
    name = 'cal_extract_RAW_spirou (fp_fp02a203.fits AB A B C)'
    print(UNITTEST.format('\n' * 3, '=' * 50, '\n', test, name))
    # set up files
    files = ['fp_fp02a203.fits']
    # run test
    ll = utf.UNIT_TEST_CAL_EXTRACT(files=files, fiber=None, return_locals=True)
    times[name] = ll['timer']
    # deal with comparison
    args = [name, ll, newoutputs, oldoutputs, errors, OLDPATH, filepath]
    newoutputs, oldoutputs, errors = utc.compare(*args)
    # append test
    test += 1

    # ----------------------------------------------------------------------
    # test cal_extract_RAW_spirou - fp_fp03a203.fits
    # ----------------------------------------------------------------------
    # set name and print progress
    name = 'cal_extract_RAW_spirou (fp_fp03a203.fits AB A B C)'
    print(UNITTEST.format('\n' * 3, '=' * 50, '\n', test, name))
    # set up files
    files = ['fp_fp03a203.fits']
Beispiel #3
0
    name = 'cal_FF_RAW_spirou (dark_flat)'
    print(UNITTEST.format('\n' * 3, '=' * 50, '\n', test, name))
    # run test
    times[name] = utf.UNIT_TEST_CAL_FF_RAW(kind='dark_flat')
    test += 1

    # ----------------------------------------------------------------------
    # test cal_extract_RAW_spirou - fp_fp02a203.fits
    # ----------------------------------------------------------------------
    # set name and print progress
    name = 'cal_extract_RAW_spirou (fp_fp02a203.fits AB A B C)'
    print(UNITTEST.format('\n' * 3, '=' * 50, '\n', test, name))
    # set up files
    files = ['fp_fp02a203.fits']
    # run test
    times[name] = utf.UNIT_TEST_CAL_EXTRACT(files=files, fiber=None)
    test += 1

    # ----------------------------------------------------------------------
    # test cal_extract_RAW_spirou - fp_fp03a203.fits
    # ----------------------------------------------------------------------
    # set name and print progress
    name = 'cal_extract_RAW_spirou (fp_fp03a203.fits AB A B C)'
    print(UNITTEST.format('\n' * 3, '=' * 50, '\n', test, name))
    # set up files
    files = ['fp_fp03a203.fits']
    # run test
    times[name] = utf.UNIT_TEST_CAL_EXTRACT(files=files, fiber=None)
    test += 1

    # ----------------------------------------------------------------------