-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1880 from effigies/fix/check-issues
fix(schema): Add issue definitions for all checks
- Loading branch information
Showing
5 changed files
with
129 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,32 @@ | ||
--- | ||
ResInSidecar: | ||
issue: | ||
code: MISSING_RESOLUTION_DESCRIPTION | ||
message: | | ||
The Resolution metadata object does not contain an entry for the file's | ||
res-<label> entity. | ||
level: error | ||
selectors: | ||
- dataset.dataset_description.DatasetType == "derivative" | ||
- intersects([modality], ["mri", "pet"]) | ||
- match(extension, '^\.nii(\.gz)?$') | ||
- type(entities.resolution) != 'null' | ||
- type(sidecar.Resolution) == "object" | ||
checks: | ||
- entities.resolution in sidecar.Resolution | ||
|
||
DenInSidecar: | ||
issue: | ||
code: MISSING_DENSITY_DESCRIPTION | ||
message: | | ||
The Density metadata object does not contain an entry for the file's | ||
res-<label> entity. | ||
level: error | ||
selectors: | ||
- dataset.dataset_description.DatasetType == "derivative" | ||
- intersects([modality], ["mri", "pet"]) | ||
- match(extension, '^\.nii(\.gz)?$') | ||
- type(entities.density) != 'null' | ||
- type(sidecar.Density) == "object" | ||
checks: | ||
- entities.density in sidecar.Density |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters