Skip to content

BIDS: does not upload anything BIDS if not explicitly specifying and --allow-any-path #1055

@yarikoptic

Description

@yarikoptic

I thought that #1011 should have made it magically happened to use our dandi.utils.find_files (while excluding VCS) if bids dataset is detected, or may be just "valid bids" paths...

but nothing like that happens -- nothing gets uploaded unless I explicitly use --allow-any-paths in DANDI_DEVEL=1 mode:
(git)lena:~/proj/bids/bids-examples[master]ds210
$> dandi upload -i dandi-staging       
2022-07-08 19:52:39,208 [ WARNING] BIDSVersion 1.0.2 is less than the minimal working 1.7.0+012+dandi001. Falling back to 1.7.0+012+dandi001. To force the usage of earlier versions specify them explicitly when calling the validator.
2022-07-08 19:52:39,924 [   ERROR] The `.*?/README$` regex pattern file required by BIDS was not found.
2022-07-08 19:52:39,925 [   ERROR] The `.*?/CHANGES$` regex pattern file required by BIDS was not found.
2022-07-08 19:52:39,925 [ WARNING] The `/home/yoh/proj/bids/bids-examples/ds210/task-cuedSGT_echo-1_bold.json` file was not matched by any regex schema entry.
2022-07-08 19:52:39,925 [ WARNING] The `/home/yoh/proj/bids/bids-examples/ds210/task-cuedSGT_echo-2_bold.json` file was not matched by any regex schema entry.
2022-07-08 19:52:39,925 [ WARNING] The `/home/yoh/proj/bids/bids-examples/ds210/task-cuedSGT_echo-3_bold.json` file was not matched by any regex schema entry.
2022-07-08 19:52:39,925 [ WARNING] The `/home/yoh/proj/bids/bids-examples/ds210/task-rest_echo-1_bold.json` file was not matched by any regex schema entry.
2022-07-08 19:52:39,925 [ WARNING] The `/home/yoh/proj/bids/bids-examples/ds210/task-rest_echo-2_bold.json` file was not matched by any regex schema entry.
2022-07-08 19:52:39,925 [ WARNING] The `/home/yoh/proj/bids/bids-examples/ds210/task-rest_echo-3_bold.json` file was not matched by any regex schema entry.
2022-07-08 19:52:40,494 [    INFO] Found 1 files to consider
PATH                 SIZE    ERRORS UPLOAD STATUS    MESSAGE                  
dandiset.yaml        1.1 kB                skipped   should be edited online  
Summary:             1.1 kB                1 skipped 1 should be edited online
2022-07-08 19:52:40,603 [    INFO] Logs saved in /home/yoh/.cache/dandi-cli/log/20220708235237Z-501498.log
changes on filesystem: 226 changes                                                                                                                                                                                   
(dev3) 1 36354.....................................:Fri 08 Jul 2022 07:52:40 PM EDT:.
(git)lena:~/proj/bids/bids-examples[master]ds210
$> dandi upload -i dandi-staging sub-02
2022-07-08 19:52:46,570 [ WARNING] BIDSVersion 1.0.2 is less than the minimal working 1.7.0+012+dandi001. Falling back to 1.7.0+012+dandi001. To force the usage of earlier versions specify them explicitly when calling the validator.
2022-07-08 19:52:47,312 [   ERROR] The `.*?/README$` regex pattern file required by BIDS was not found.
2022-07-08 19:52:47,313 [   ERROR] The `.*?/CHANGES$` regex pattern file required by BIDS was not found.
2022-07-08 19:52:47,313 [ WARNING] The `/home/yoh/proj/bids/bids-examples/ds210/task-cuedSGT_echo-1_bold.json` file was not matched by any regex schema entry.
2022-07-08 19:52:47,313 [ WARNING] The `/home/yoh/proj/bids/bids-examples/ds210/task-cuedSGT_echo-2_bold.json` file was not matched by any regex schema entry.
2022-07-08 19:52:47,313 [ WARNING] The `/home/yoh/proj/bids/bids-examples/ds210/task-cuedSGT_echo-3_bold.json` file was not matched by any regex schema entry.
2022-07-08 19:52:47,313 [ WARNING] The `/home/yoh/proj/bids/bids-examples/ds210/task-rest_echo-1_bold.json` file was not matched by any regex schema entry.
2022-07-08 19:52:47,313 [ WARNING] The `/home/yoh/proj/bids/bids-examples/ds210/task-rest_echo-2_bold.json` file was not matched by any regex schema entry.
2022-07-08 19:52:47,313 [ WARNING] The `/home/yoh/proj/bids/bids-examples/ds210/task-rest_echo-3_bold.json` file was not matched by any regex schema entry.
2022-07-08 19:52:47,830 [    INFO] Found 0 files to consider
2022-07-08 19:52:47,834 [    INFO] Logs saved in /home/yoh/.cache/dandi-cli/log/20220708235244Z-501606.log
changes on filesystem: 226 changes                                                                                                                                                                                   
(dev3) 1 36355.....................................:Fri 08 Jul 2022 07:52:48 PM EDT:.
(git)lena:~/proj/bids/bids-examples[master]ds210
$> DANDI_DEVEL=1 dandi upload -i dandi-staging --allow-any-path sub-02
2022-07-08 19:52:58,673 [ WARNING] BIDSVersion 1.0.2 is less than the minimal working 1.7.0+012+dandi001. Falling back to 1.7.0+012+dandi001. To force the usage of earlier versions specify them explicitly when calling the validator.
2022-07-08 19:52:59,423 [   ERROR] The `.*?/README$` regex pattern file required by BIDS was not found.
2022-07-08 19:52:59,424 [   ERROR] The `.*?/CHANGES$` regex pattern file required by BIDS was not found.
2022-07-08 19:52:59,424 [ WARNING] The `/home/yoh/proj/bids/bids-examples/ds210/task-cuedSGT_echo-1_bold.json` file was not matched by any regex schema entry.
2022-07-08 19:52:59,424 [ WARNING] The `/home/yoh/proj/bids/bids-examples/ds210/task-cuedSGT_echo-2_bold.json` file was not matched by any regex schema entry.
2022-07-08 19:52:59,424 [ WARNING] The `/home/yoh/proj/bids/bids-examples/ds210/task-cuedSGT_echo-3_bold.json` file was not matched by any regex schema entry.
2022-07-08 19:52:59,424 [ WARNING] The `/home/yoh/proj/bids/bids-examples/ds210/task-rest_echo-1_bold.json` file was not matched by any regex schema entry.
2022-07-08 19:52:59,424 [ WARNING] The `/home/yoh/proj/bids/bids-examples/ds210/task-rest_echo-2_bold.json` file was not matched by any regex schema entry.
2022-07-08 19:52:59,424 [ WARNING] The `/home/yoh/proj/bids/bids-examples/ds210/task-rest_echo-3_bold.json` file was not matched by any regex schema entry.
2022-07-08 19:53:00,099 [    INFO] Found 20 files to consider
PATH                                                      SIZE      ERRORS UPLOAD STATUS                MESSAGE
sub-02/func/sub-02_task-cuedSGT_run-01_echo-1_bold.nii.gz 60 Bytes    0           initiating upload            
sub-02/func/sub-02_task-cuedSGT_run-01_echo-2_bold.nii.gz 60 Bytes    0           initiating upload            
sub-02/func/sub-02_task-cuedSGT_run-01_echo-3_bold.nii.gz 60 Bytes    0           initiating upload            
sub-02/func/sub-02_task-cuedSGT_run-01_physio.tsv.gz      96.0 kB     0           initiating upload            
sub-02/func/sub-02_task-cuedSGT_run-02_echo-1_bold.nii.gz 60 Bytes    0           initiating upload            
sub-02/func/sub-02_task-cuedSGT_run-02_echo-2_bold.nii.gz                                                      

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions