Commit fb1f802
committed
Fix SIDECAR_WITHOUT_DATAFILE for EMG coordsystem files
The previous selector used 'modality != emg' which did not work for
coordsystem files because modality is not reliably set for these files.
This fix excludes coordsystem files when:
- datatype is 'emg' (files in emg/ directory), OR
- the file has a space entity (e.g., space-leftForearm_coordsystem.json)
The second condition allows root-level coordsystem files with space
entities to pass validation. These are used in EMG datasets where
coordinate systems are shared across subjects and sessions.
Example valid patterns:
- /space-leftForearm_coordsystem.json (root level, no sub/ses entities)
- /sub-01/emg/sub-01_space-hand_coordsystem.json (subject level)1 parent 57d7711 commit fb1f802
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
0 commit comments