Skip to content

Commit

Permalink
[FIX] Remove task entity from DWI and PERF time series file templates (
Browse files Browse the repository at this point in the history
…#1703)

* fix physio

* allow stim
  • Loading branch information
Remi-Gau authored Feb 13, 2024
1 parent 8b55de6 commit fea966c
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions src/schema/rules/files/raw/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,25 @@ timeseries:
run: optional
recording: optional

timeseries__mri_no_task:
suffixes:
- physio
- stim
extensions:
- .tsv.gz
- .json
datatypes:
- dwi
- perf
entities:
subject: required
session: optional
acquisition: optional
run: optional
reconstruction: optional
direction: optional
recording: optional

# Specializations
# In these rules, we use $ref to retrieve most of an object, and then override

Expand Down Expand Up @@ -72,23 +91,15 @@ events__pet:
reconstruction: optional
run: optional

timeseries__mri:
$ref: rules.files.raw.task.timeseries
datatypes:
- dwi
- perf
entities:
$ref: rules.files.raw.task.timeseries.entities
reconstruction: optional
direction: optional

timeseries__func:
$ref: rules.files.raw.task.timeseries
datatypes:
- func
entities:
$ref: rules.files.raw.task.timeseries__mri.entities
$ref: rules.files.raw.task.timeseries.entities
ceagent: optional
reconstruction: optional
direction: optional

timeseries__meg:
$ref: rules.files.raw.task.timeseries
Expand Down

0 comments on commit fea966c

Please sign in to comment.