diff --git a/sfaira/data/dataloaders/base/dataset.py b/sfaira/data/dataloaders/base/dataset.py index d03df3cbf..b439a9dbf 100644 --- a/sfaira/data/dataloaders/base/dataset.py +++ b/sfaira/data/dataloaders/base/dataset.py @@ -350,8 +350,8 @@ def _download_synapse(self, synapse_entity, fn, **kwargs): print(f"Downloading from synapse: {fn}") syn = synapseclient.Synapse() syn.login(kwargs['synapse_user'], kwargs['synapse_pw']) - dataset = syn.get(entity=synapse_entity) - shutil.move(dataset.data_dir_base, os.path.join(self.data_dir, fn)) + syn.get(entity=synapse_entity, downloadLocation=os.path.join(self.data_dir, fn)) + syn.logout() @property def cache_fn(self):