Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions changelog.d/20250214_094554_markiewicz_load_subjects.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!--
A new scriv changelog fragment.
Uncomment the section that is right (remove the HTML comment wrapper).
-->

<!--
### Added
- A bullet item for the Added category.
-->
<!--
### Changed
- A bullet item for the Changed category.
-->

### Fixed

- Subject detection in `participants.tsv` and `phenotype/` directories
has been restored, enabling checks that were deactivated by the missing
data. ([#162])

[#162]: https://github.com/bids-standard/bids-validator/pull/162

<!--
### Deprecated
- A bullet item for the Deprecated category.
-->
<!--
### Removed
- A bullet item for the Removed category.
-->
<!--
### Security
- A bullet item for the Security category.
-->
<!--
### Infrastructure
- A bullet item for the Infrastructure category.
-->
7 changes: 2 additions & 5 deletions src/schema/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,8 @@ export class BIDSContextDataset implements Dataset {
?.filter((ext) => ext.endsWith('/'))
: [],
)
this.subjects = args.subjects || {
sub_dirs: this.tree.directories.map((dir) => dir.name).filter((dir) =>
dir.startsWith('sub-')
),
}
// @ts-ignore
this.subjects = args.subjects || null
}

get dataset_description(): Record<string, unknown> {
Expand Down