Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
k1o0 committed Oct 30, 2024
1 parent 42301ce commit 706c5c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- prompt user to strip quotation marks if used during ONE setup
- indicate when downloading from S3
- added 'keep_eid_index' kwarg to One.list_datasets which will return the data frame with the eid index level reinstated
- HOTFIX: include Subject/lab part in destination path when downloading from S3

## [2.10.0]
This version improves behaviour of loading revisions and loading datasets from list_datasets output.
Expand Down
3 changes: 2 additions & 1 deletion one/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2374,8 +2374,9 @@ def _download_aws(self, dsets, update_exists=True, keep_uuid=None, **_) -> List[
assert record['relative_path'].endswith(dset['rel_path']), \
f'Relative path for dataset {uuid} does not match Alyx record'
source_path = PurePosixPath(record['data_repository_path'], record['relative_path'])
local_path = self.cache_dir.joinpath(alfiles.get_alf_path(source_path))
# Add UUIDs to filenames, if required
source_path = alfiles.add_uuid_string(source_path, uuid)
local_path = self.cache_dir.joinpath(record['relative_path'])
if keep_uuid is True or (keep_uuid is None and self.uuid_filenames is True):
local_path = alfiles.add_uuid_string(local_path, uuid)
local_path.parent.mkdir(exist_ok=True, parents=True)
Expand Down

0 comments on commit 706c5c4

Please sign in to comment.