khanlab / khanlab/snakebids

No components found when `--participant-label` requests only non-existant subjects

Open
#479 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
23
Forks
16
PR merge metrics
No merged PRs in 30d

Description

Per #216, `--participant-label` is supposed to apply after dataset parsing and querying. If only non-existent subjects are requested, a valid but empty component should be delivered. This is not currently happening. For performance reasons, the `--participant-label` filters are being applied via `layout.get` from pybids, but in the above case, return an empty list leading to datasets not being found.

Contributor guide

No contributing guide indexed for this repository

Research direction

Trace the `--participant-label` handling and its calls to `layout.get` in the dataset parsing and querying path. Reproduce the case where only non-existent subjects are requested, then verify that a valid empty component is delivered instead of treating the dataset as missing.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.