Skip to content

Commit

Permalink
fix synapse data download interface (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
le-ander authored Nov 29, 2021
1 parent c628034 commit 963d043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sfaira/data/dataloaders/base/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 963d043

Please sign in to comment.