示例#1
0
def test_detect_tasoc():
    """Can we detect the correct format for TASOC files?"""
    url = "https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:HLSP/tasoc/s0001/ffi/0000/0004/1206/4070/hlsp_tasoc_tess_ffi_tic00412064070-s01-c1800_tess_v04_lc.fits"
    f = fits.open(url)

    assert detect_filetype(f) == "TASOC"
示例#2
0
def test_detect_pathos():
    """Can we detect the correct format for PATHOS files?"""
    url = "https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:HLSP/pathos/s0008/hlsp_pathos_tess_lightcurve_tic-0093270923-s0008_tess_v1_llc.fits"
    f = fits.open(url)

    assert detect_filetype(f) == "PATHOS"
示例#3
0
def test_detect_cdips():
    """Can we detect the correct format for CDIPS files?"""
    url = "https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:HLSP/cdips/s0008/cam3_ccd4/hlsp_cdips_tess_ffi_gaiatwo0005318059532750974720-0008-cam3-ccd4_tess_v01_llc.fits"
    f = fits.open(url)

    assert detect_filetype(f) == "CDIPS"
示例#4
0
def test_detect_kepseismic():
    """Can we detect the correct format for KEPSEISMIC files?"""
    url = "https://archive.stsci.edu/hlsps/kepseismic/001200000/92147/20d-filter/hlsp_kepseismic_kepler_phot_kplr001292147-20d_kepler_v1_cor-filt-inp.fits"
    f = fits.open(url)

    assert detect_filetype(f) == "KEPSEISMIC"