Skip to content

Commit dd1e5d2

Browse files
committed
Merge remote-tracking branch 'upstream/maint/1.10.1'
2 parents d62a5d2 + a5aaf93 commit dd1e5d2

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

src/schema/meta/associations.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
---
1515
events:
1616
selectors:
17-
- '"task" in entities'
1817
- extension != '.json'
1918
target:
2019
suffix: events

src/schema/meta/expression_tests.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@
139139
result: -1
140140
- expression: max([-1, "n/a", 1])
141141
result: 1
142+
- expression: min(42)
143+
result: 42
144+
- expression: max(42)
145+
result: 42
142146
- expression: '[3, 2, 1][0]'
143147
result: 3
144148
- expression: '"string"[0]'

src/schema/rules/checks/asl.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -201,16 +201,18 @@ ASLTotalAcquiredPairsASLContextLength:
201201
code: TOTAL_ACQUIRED_VOLUMES_NOT_CONSISTENT
202202
message: |
203203
The number of values for 'TotalAcquiredPairs' for this file does not match number of
204-
volumes in the associated 'aslcontext.tsv'.
205-
'TotalAcquiredPairs' is the original number of 3D volumes acquired for each volume defined in the
206-
associated 'aslcontext.tsv'.
204+
control-label pairs in the associated 'aslcontext.tsv'.
205+
'TotalAcquiredPairs' is the original number of control-label pairs
206+
defined in the associated 'aslcontext.tsv'.
207207
level: warning
208208
selectors:
209209
- suffix == "asl"
210210
- type(associations.aslcontext) != "null"
211211
- '"TotalAcquiredPairs" in sidecar'
212+
- count(associations.aslcontext.volume_type, "control") > 0
212213
checks:
213-
- aslcontext.n_rows == sidecar.TotalAcquiredPairs
214+
- count(associations.aslcontext.volume_type, "control") == sidecar.TotalAcquiredPairs
215+
- count(associations.aslcontext.volume_type, "label") == sidecar.TotalAcquiredPairs
214216

215217
# 184
216218
PostLabelingDelayGreater:
@@ -223,7 +225,7 @@ PostLabelingDelayGreater:
223225
- suffix == "asl"
224226
- sidecar.PostLabelingDelay != null
225227
checks:
226-
- sidecar.PostLabelingDelay <= 10
228+
- max(sidecar.PostLabelingDelay) <= 10
227229

228230
# 186
229231
BolusCutOffDelayTimeGreater:
@@ -235,7 +237,7 @@ BolusCutOffDelayTimeGreater:
235237
selectors:
236238
- sidecar.BolusCutOffDelayTime != null
237239
checks:
238-
- sidecar.BolusCutOffDelayTime <= 10
240+
- max(sidecar.BolusCutOffDelayTime) <= 10
239241

240242
# 187
241243
LabelingDurationGreater:
@@ -247,7 +249,7 @@ LabelingDurationGreater:
247249
selectors:
248250
- sidecar.LabelingDuration != null
249251
checks:
250-
- sidecar.LabelingDuration <= 10
252+
- max(sidecar.LabelingDuration) <= 10
251253

252254
# 196
253255
ASLEchoTimeASLContextLength:

src/schema/rules/checks/mri.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ EchoTimeGreaterThan:
2323
- modality == "mri"
2424
- sidecar.EchoTime
2525
checks:
26-
- sidecar.EchoTime <= 1
26+
- max(sidecar.EchoTime) <= 1
2727

2828
# 5
2929
TotalReadoutTimeGreaterThan:

0 commit comments

Comments
 (0)