13d5b2195ca142550de258441394203212be54cd,astroML/datasets/sdss_sspp.py,,fetch_sdss_sspp,#,52

Before Change


                          "set download_if_missing=True to download")

        fitsdata = download_with_progress_bar(DATA_URL)
        open(archive_file, "wb").write(fitsdata)

    hdulist = fits.open(archive_file)

    data = np.asarray(hdulist[1].data)

    if cleaned:
        // -1.1 < FeH < 0.1

After Change


    
    data_home = get_data_home(data_home)

    archive_file = os.path.join(data_home, os.path.basename(DATA_URL))

    if not os.path.exists(archive_file):
        if not download_if_missing:
            raise IOError("data not present on disk. "
                          "set download_if_missing=True to download")

        data = Table.read(DATA_URL)
        data.write(archive_file)
    else:
        data = Table.read(archive_file)

    if cleaned:
        // -1.1 < FeH < 0.1
        data = data[(data["FeH"] > -1.1) & (data["FeH"] < 0.1)]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: astroML/astroML
Commit Name: 13d5b2195ca142550de258441394203212be54cd
Time: 2019-04-16
Author: bsipocz@gmail.com
File Name: astroML/datasets/sdss_sspp.py
Class Name:
Method Name: fetch_sdss_sspp


Project Name: astroML/astroML
Commit Name: 4227f7c2810a6fc48165311e19a4a6aaac38475e
Time: 2019-04-16
Author: bsipocz@gmail.com
File Name: astroML/datasets/sdss_specgals.py
Class Name:
Method Name: fetch_sdss_specgals


Project Name: astroML/astroML
Commit Name: 13d5b2195ca142550de258441394203212be54cd
Time: 2019-04-16
Author: bsipocz@gmail.com
File Name: astroML/datasets/imaging_sample.py
Class Name:
Method Name: fetch_imaging_sample