Skip to content

Commit

Permalink
Merge pull request #34 from ComplexData-MILA/dtdg
Browse files Browse the repository at this point in the history
DTDG
  • Loading branch information
shenyangHuang authored Feb 15, 2024
2 parents a734d7f + a115233 commit e8a8d02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tgx/data/builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
def download(url: str, output_path: str):
get_response = requests.get(url,stream=True)
file_name = url.split("/")[-1]
fpath = output_path + file_name
with open(output_path + file_name, 'wb') as f:
fpath = output_path + "/" + file_name
with open(fpath, 'wb') as f:
for chunk in get_response.iter_content(chunk_size=1024):
if chunk: # filter out keep-alive new chunks
f.write(chunk)
Expand Down Expand Up @@ -96,7 +96,7 @@ def download_file(self):
print("Data missing, download recommended!")
inp = input('Will you download the dataset(s) now? (y/N)\n').lower()
url = f"https://zenodo.org/record/7213796/files/{self.name}.zip"
path_download = f"./data"
path_download = f"./data"
print(path_download)
print(url)
if inp == 'y':
Expand Down

0 comments on commit e8a8d02

Please sign in to comment.