Skip to content

Commit ec0d0a8

Browse files
authored
Merge pull request #162 from effigies/fix/load-subjects
fix: Load subjects
2 parents 49b8742 + 30ae278 commit ec0d0a8

File tree

2 files changed

+53
-5
lines changed

2 files changed

+53
-5
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<!--
2+
A new scriv changelog fragment.
3+
4+
Uncomment the section that is right (remove the HTML comment wrapper).
5+
-->
6+
7+
<!--
8+
### Added
9+
10+
- A bullet item for the Added category.
11+
12+
-->
13+
<!--
14+
### Changed
15+
16+
- A bullet item for the Changed category.
17+
18+
-->
19+
20+
### Fixed
21+
22+
- Subject detection in `participants.tsv` and `phenotype/` directories
23+
has been restored, enabling checks that were deactivated by the missing
24+
data. ([#162])
25+
26+
[#162]: https://github.com/bids-standard/bids-validator/pull/162
27+
28+
<!--
29+
### Deprecated
30+
31+
- A bullet item for the Deprecated category.
32+
33+
-->
34+
<!--
35+
### Removed
36+
37+
- A bullet item for the Removed category.
38+
39+
-->
40+
<!--
41+
### Security
42+
43+
- A bullet item for the Security category.
44+
45+
-->
46+
<!--
47+
### Infrastructure
48+
49+
- A bullet item for the Infrastructure category.
50+
51+
-->

src/schema/context.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,8 @@ export class BIDSContextDataset implements Dataset {
6363
?.filter((ext) => ext.endsWith('/'))
6464
: [],
6565
)
66-
this.subjects = args.subjects || {
67-
sub_dirs: this.tree.directories.map((dir) => dir.name).filter((dir) =>
68-
dir.startsWith('sub-')
69-
),
70-
}
66+
// @ts-ignore
67+
this.subjects = args.subjects || null
7168
}
7269

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

0 commit comments

Comments
 (0)