a1292078d2016dff4228fff869430ab4ace79b6b,astroML/datasets/sdss_corrected_spectra.py,,fetch_sdss_corrected_spectra,#,67
Before Change
np.savez(archive_file, **data_dict)
else:
data = np.load(archive_file)
return data
After Change
data_file = os.path.join(data_home, os.path.basename(DATA_URL))
if not os.path.exists(data_file):
if not download_if_missing:
raise IOError("data not present on disk. "
"set download_if_missing=True to download")
print("downloading PCA-processed SDSS spectra from %s to %s"
% (DATA_URL, data_home))
databuffer = download_with_progress_bar(DATA_URL)
open(data_file, "wb").write(databuffer)
data = np.load(data_file)
return data
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: astroML/astroML
Commit Name: a1292078d2016dff4228fff869430ab4ace79b6b
Time: 2019-01-04
Author: bsipocz@gmail.com
File Name: astroML/datasets/sdss_corrected_spectra.py
Class Name:
Method Name: fetch_sdss_corrected_spectra
Project Name: mathurinm/celer
Commit Name: 34111c5ab8972864efff82a83262842c4c92806b
Time: 2020-03-05
Author: mathurinm@users.noreply.github.com
File Name: celer/datasets/climate.py
Class Name:
Method Name: load_climate
Project Name: mathurinm/celer
Commit Name: 1dccf66a55fd114a7c0c416b2631d12b70ad9fce
Time: 2018-03-14
Author: alexandre.gramfort@m4x.org
File Name: examples/plot_finance_path.py
Class Name:
Method Name: