Skip to content

Missing data in get_collections(level='session') #604

Description

@effigies

I think this is a bug, anyway:

Reproduction:

$ datalad clone ///openneuro/ds000224
$ datalad get -C ds000224 sub-MSC01/func01
$ cat ds000224/sub-MSC01/ses-func01/sub-MSC01_ses-func01_scans.tsv
filename	acq_time
func/sub-MSC01_ses-func01_task-rest_bold.nii.gz	1894-08-25T01:15:37
func/sub-MSC01_ses-func01_task-memorywords_bold.nii.gz	1894-08-25T02:20:34
func/sub-MSC01_ses-func01_task-memoryfaces_bold.nii.gz	1894-08-25T02:31:57
func/sub-MSC01_ses-func01_task-memoryscenes_bold.nii.gz	1894-08-25T02:26:27
func/sub-MSC01_ses-func01_task-glasslexical_run-01_bold.nii.gz	1894-08-25T02:44:47
func/sub-MSC01_ses-func01_task-glasslexical_run-02_bold.nii.gz	1894-08-25T02:53:17
func/sub-MSC01_ses-func01_task-motor_run-01_bold.nii.gz	1894-08-25T02:37:34
func/sub-MSC01_ses-func01_task-motor_run-02_bold.nii.gz	1894-08-25T03:00:54
>>> from bids import BIDSLayout
>>> layout = BIDSLayout("ds000224")
>>> layout.get_collections(level="session", subject='MSC01', session='func01')[0].to_df()
           task suffix subject  ...  SoftwareVersion      TaskName             acq_time
0  glasslexical   bold   MSC01  ...     syngo MR B17  glasslexical  1894-08-25T02:44:47
1  glasslexical   bold   MSC01  ...     syngo MR B17  glasslexical  1894-08-25T02:53:17
2         motor   bold   MSC01  ...     syngo MR B17         motor  1894-08-25T02:37:34
3         motor   bold   MSC01  ...     syngo MR B17         motor  1894-08-25T03:00:54

[4 rows x 30 columns]

I think there should be rows for the other scans. Possibly the issue is the absence of run indices?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions