def test_fetch_asas_training(self):
Test ASAS training data download.
num_files = 1
data_dir = tempfile.mkdtemp()
asas_training.MD5SUMS = None
data = asas_training.fetch_asas_training(data_dir)
assert(data["archive"].endswith("asas_training_set.tar.gz")
and os.path.exists(data["archive"]))
After Change
Test ASAS training data download.
num_files = 1
asas_training.MD5SUMS = None
data = asas_training.fetch_asas_training(str(tmpdir))
assert(data["archive"].endswith("asas_training_set.tar.gz")
and os.path.exists(data["archive"]))
header = pd.read_csv(data["header"])