Skip to content

Commit 02e8e41

Browse files
committed
Merge remote-tracking branch 'upstream/main' into dev
2 parents 8534723 + d9e7b40 commit 02e8e41

18 files changed

+176
-127
lines changed

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,46 @@
11

2+
<a id='changelog-2.0.2'></a>
3+
# 2.0.2 — 2025-02-10
4+
5+
## Added
6+
7+
- Enable glob-style wildcards for `location` field in configuration files. (#134)
8+
9+
## Changed
10+
11+
- Ensure HED schemas are loaded only once, improving efficiency. (#156)
12+
13+
- Change the output of the `intersects()` function in the expression language
14+
to return the intersection, if non-empty.
15+
Corresponds to [bids-standard/bids-specification#2044]. (#150)
16+
17+
- Update to BIDS schema version 1.0.1 (BIDSVersion 1.10.0) (#152)
18+
19+
- Limit TSV validation to first 1000 rows by default,
20+
adding the `--max-rows` flag to control this behavior. (#139)
21+
22+
[bids-standard/bids-specification#2044]: https://github.com/bids-standard/bids-specification/pull/2044
23+
24+
## Fixed
25+
26+
- TSV files may now have columns named `set`, `clear`, `delete`, `keys`, or `value`.
27+
These were previously masked by the methods on the data structure
28+
representing columns. (#155)
29+
30+
- Improve handling of `.bidsignore` files in the web validator.
31+
Ignores matching directories but not the files they contained could fail to match.
32+
(#113)
33+
34+
- Resolve issue with parsing headers of NIfTI files with large extensions.
35+
Fixes [issue 126].
36+
37+
[issue 126]: https://github.com/bids-standard/bids-validator/issues/126
38+
39+
## Infrastructure
40+
41+
- Adopting [scriv](https://scriv.readthedocs.io/en/latest/) for changelog
42+
management.
43+
244
<a id='changelog-2.0.1'></a>
345
# 2.0.1 — 2024-12-10
446

changelog.d/20241114_165444_effigies.md renamed to changelog.d/20250214_094554_markiewicz_load_subjects.md

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ A new scriv changelog fragment.
44
Uncomment the section that is right (remove the HTML comment wrapper).
55
-->
66

7-
<!--
8-
### Removed
9-
10-
- A bullet item for the Removed category.
11-
12-
-->
137
<!--
148
### Added
159
@@ -22,21 +16,36 @@ Uncomment the section that is right (remove the HTML comment wrapper).
2216
- A bullet item for the Changed category.
2317
2418
-->
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+
2528
<!--
2629
### Deprecated
2730
2831
- A bullet item for the Deprecated category.
2932
3033
-->
31-
### Fixed
34+
<!--
35+
### Removed
3236
33-
- Improve handling of `.bidsignore` files in the web validator.
34-
Ignores matching directories but not the files they contained could fail to match.
35-
(#113)
37+
- A bullet item for the Removed category.
3638
39+
-->
3740
<!--
3841
### Security
3942
4043
- A bullet item for the Security category.
4144
4245
-->
46+
<!--
47+
### Infrastructure
48+
49+
- A bullet item for the Infrastructure category.
50+
51+
-->

changelog.d/20241204_103403_effigies_nifti_headers.md renamed to changelog.d/20250214_101021_markiewicz_scrivening.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ Uncomment the section that is right (remove the HTML comment wrapper).
1616
- A bullet item for the Changed category.
1717
1818
-->
19+
1920
### Fixed
2021

21-
- Resolve issue with parsing headers of NIfTI files with large extensions.
22-
Fixes [issue 126].
22+
- Skip HED tests if schema cannot be loaded. This was exhibiting
23+
as a `HED_ERROR` with "cannot read property null". ([#160])
2324

24-
[issue 126]: https://github.com/bids-standard/bids-validator/issues/126
25+
[#160]: https://github.com/bids-standard/bids-validator/pull/160
2526

2627
<!--
2728
### Deprecated

changelog.d/20241114_192344_effigies_scriv.md renamed to changelog.d/20250216_174252_dominik.welke_fix_warn_message.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ Uncomment the section that is right (remove the HTML comment wrapper).
1616
- A bullet item for the Changed category.
1717
1818
-->
19-
<!--
19+
2020
### Fixed
2121

22-
- A bullet item for the Fixed category.
22+
- fix misleading ERROR/WARNING message
23+
2324

24-
-->
2525
<!--
2626
### Deprecated
2727
@@ -40,7 +40,9 @@ Uncomment the section that is right (remove the HTML comment wrapper).
4040
- A bullet item for the Security category.
4141
4242
-->
43+
<!--
4344
### Infrastructure
4445
45-
- Adopting [scriv](https://scriv.readthedocs.io/en/latest/) for changelog
46-
management.
46+
- A bullet item for the Infrastructure category.
47+
48+
-->

deno.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@
3333
"@cliffy/table": "jsr:@effigies/[email protected]",
3434
"@hed/validator": "npm:[email protected]",
3535
"@ignore": "npm:[email protected]",
36-
"@libs/xml": "jsr:@libs/[email protected].1",
36+
"@libs/xml": "jsr:@libs/[email protected].4",
3737
"@mango/nifti": "npm:@bids/[email protected]",
3838
"@std/assert": "jsr:@std/[email protected]",
39-
"@std/fmt": "jsr:@std/[email protected].3",
40-
"@std/fs": "jsr:@std/[email protected].5",
41-
"@std/io": "jsr:@std/[email protected].0",
42-
"@std/log": "jsr:@std/[email protected].9",
39+
"@std/fmt": "jsr:@std/[email protected].5",
40+
"@std/fs": "jsr:@std/[email protected].13",
41+
"@std/io": "jsr:@std/[email protected].2",
42+
"@std/log": "jsr:@std/[email protected].14",
4343
"@std/path": "jsr:@std/[email protected]",
44-
"@std/streams": "jsr:@std/[email protected].8",
45-
"@std/yaml": "jsr:@std/yaml@^1.0.4"
44+
"@std/streams": "jsr:@std/[email protected].9",
45+
"@std/yaml": "jsr:@std/yaml@^1.0.5"
4646
},
4747
"tasks": {
48-
"test": "deno test -A src/tests/"
48+
"test": "deno test -A src/"
4949
},
5050
"fmt": {
5151
"lineWidth": 99,

deno.lock

Lines changed: 39 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/files/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class BIDSFileBrowser implements BIDSFile {
4141
return this.#file.text()
4242
}
4343

44-
async readBytes(size: number, offset = 0): Promise<Uint8Array> {
44+
async readBytes(size: number, offset = 0): Promise<Uint8Array<ArrayBuffer>> {
4545
return new Uint8Array(await this.#file.slice(offset, size).arrayBuffer())
4646
}
4747
}

src/files/deno.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class BIDSFileDeno implements BIDSFile {
7878
* Reads up to size bytes, starting at offset.
7979
* If EOF is encountered, the resulting array may be smaller.
8080
*/
81-
async readBytes(size: number, offset = 0): Promise<Uint8Array> {
81+
async readBytes(size: number, offset = 0): Promise<Uint8Array<ArrayBuffer>> {
8282
const handle = this.#openHandle()
8383
const buf = new Uint8Array(size)
8484
await handle.seek(offset, Deno.SeekMode.Start)

src/files/nifti.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { BIDSFile } from '../types/filetree.ts'
33
import { logger } from '../utils/logger.ts'
44
import type { NiftiHeader } from '@bids/schema/context'
55

6-
async function extract(buffer: Uint8Array, nbytes: number): Promise<Uint8Array> {
6+
async function extract(buffer: Uint8Array, nbytes: number): Promise<Uint8Array<ArrayBuffer>> {
77
// The fflate decompression that is used in nifti-reader does not like
88
// truncated data, so pretend that we have a stream and stop reading
99
// when we have enough bytes.

src/files/tiff.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import * as XML from '@libs/xml'
77
import type { BIDSFile } from '../types/filetree.ts'
88

99
function getImageDescription(
10-
dataview: DataView,
10+
dataview: DataView<ArrayBuffer>,
1111
littleEndian: boolean,
1212
IFDsize: number,
1313
): string | undefined {

0 commit comments

Comments
 (0)