You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce transfer modes and implement move+symlink (#1384)
* enforce read_only on remote datasets
* reset state to server state when change was tried.
* add tests for changing properties on remote datasets. fix test.py
* format
* introduce transfer modes.
* introduce transfer mode. add test for move+symlink
* move transfer mode to own file
* remove no longer used file
* improve comment
* fix test
* add changelog
---------
Co-authored-by: valentin-pinkau <[email protected]>
folder_id: Optional ID of folder where dataset should be placed
616
617
require_unique_name: Whether to make request fail in case a dataset with the name already exists
617
618
layers_to_link: Optional list of LayerToLink to link already published layers to the dataset.
618
-
upload_directly_to_common_storage: Set this to true when the client has access to the same storage system as the WEBKNOSSOS datastore (file system or cloud storage).
619
619
jobs: Optional number of jobs to use for uploading the data.
620
-
common_storage_path_prefix: Optional path prefix used when upload_directly_to_common_storage is true to select one of the available mount points for the dataset folder.
621
-
symlink_data_instead_of_copy: Considered, when upload_directly_to_common_storage is True. Set this to true when the client has access to the same file system as the WEBKNOSSOS datastore.
622
-
When set to true, the data symlinked to the new location.
620
+
common_storage_path_prefix: Optional path prefix used when transfer_mode is either COPY or MOVE_AND_SYMLINK
621
+
to select one of the available WEBKNOSSOS storages.
623
622
Returns:
624
623
RemoteDataset: Reference to the newly created remote dataset
625
624
Note:
@@ -641,11 +640,6 @@ def upload(
641
640
```
642
641
"""
643
642
644
-
ifsymlink_data_instead_of_copy:
645
-
assertupload_directly_to_common_storage, (
646
-
"Cannot use symlinking with upload_directly_to_common_storage=False"
0 commit comments