Skip to content

Commit 3cf82a7

Browse files
authored
Minor fix to DSAD data download (#495)
1 parent 1be3829 commit 3cf82a7

File tree

1 file changed

+2
-0
lines changed
  • torch_em/data/datasets/medical

1 file changed

+2
-0
lines changed

torch_em/data/datasets/medical/dsad.py

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ def get_dsad_data(path: Union[os.PathLike, str], download: bool = False) -> str:
3939
if os.path.exists(data_dir):
4040
return data_dir
4141

42+
os.makedirs(path, exist_ok=True)
43+
4244
zip_path = os.path.join(path, "data.zip")
4345
print("Downloading the DSAD data. Might take several minutes depending on your internet connection.")
4446
util.download_source(path=zip_path, url=URL, download=download, checksum=CHECKSUM)

0 commit comments

Comments
 (0)