Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
amva13 committed Sep 5, 2024
1 parent b55101f commit 98773f3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tdc/resource/pinnacle.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,14 @@ def get_exp_data(self, seed=1, split="train"):
for file in file_list:
os.remove(os.path.join("./data", file))
print("downloading pinancle zip data...")
zip_data_download_wrapper(filename, "./data", ["pinnacle_output{}".format(x) for x in range(1,11)])
zip_data_download_wrapper(
filename, "./data",
["pinnacle_output{}".format(x) for x in range(1, 11)])
print("success!")
# Get non-csv files and remove them
non_csv_files = [f for f in os.listdir("./data") if not f.endswith(".csv")]
non_csv_files = [
f for f in os.listdir("./data") if not f.endswith(".csv")
]
for x in non_csv_files:
os.remove("./data/{}".format(x))
# Get a list of all CSV files in the unzipped folder
Expand All @@ -111,7 +115,4 @@ def get_exp_data(self, seed=1, split="train"):
df["disease"] = disease
x.append(df)
os.remove("./data/{}".format(file))
return pd.concat(x, axis=0, ignore_index=True)



return pd.concat(x, axis=0, ignore_index=True)

0 comments on commit 98773f3

Please sign in to comment.