Skip to content

Commit

Permalink
Merge pull request #1848 from sappelhoff/schema/meg
Browse files Browse the repository at this point in the history
Add deprecation check for ElektaNeuromagMEGIN in schema
  • Loading branch information
rwblair committed Jun 20, 2024
2 parents e738e35 + 82674bc commit db6b07d
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions src/schema/rules/checks/deprecations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
AnatomicalLandmarkCoordinateSystemDeprecation:
issue:
code: ELEKTA_NEUROMAG_DEPRECATED
message: |
"ElektaNeuromag" as a coordinate system is deprecated.
Use "NeuromagElektaMEGIN" instead.
level: warning
selectors:
- sidecar.AnatomicalLandmarkCoordinateSystem
checks:
- sidecar.AnatomicalLandmarkCoordinateSystem != "ElektaNeuromag"

DigitizedHeadPointsCoordinateSystemDeprecation:
$ref: rules.checks.deprecations.AnatomicalLandmarkCoordinateSystemDeprecation
selectors:
- sidecar.DigitizedHeadPointsCoordinateSystem
checks:
- sidecar.DigitizedHeadPointsCoordinateSystem != "ElektaNeuromag"

EEGCoordinateSystemDeprecation:
$ref: rules.checks.deprecations.AnatomicalLandmarkCoordinateSystemDeprecation
selectors:
- sidecar.EEGCoordinateSystem
checks:
- sidecar.EEGCoordinateSystem != "ElektaNeuromag"

FiducialsCoordinateSystemDeprecation:
$ref: rules.checks.deprecations.AnatomicalLandmarkCoordinateSystemDeprecation
selectors:
- sidecar.FiducialsCoordinateSystem
checks:
- sidecar.FiducialsCoordinateSystem != "ElektaNeuromag"

HeadCoilCoordinateSystemDeprecation:
$ref: rules.checks.deprecations.AnatomicalLandmarkCoordinateSystemDeprecation
selectors:
- sidecar.HeadCoilCoordinateSystem
checks:
- sidecar.HeadCoilCoordinateSystem != "ElektaNeuromag"

MEGCoordinateSystemDeprecation:
$ref: rules.checks.deprecations.AnatomicalLandmarkCoordinateSystemDeprecation
selectors:
- sidecar.MEGCoordinateSystem
checks:
- sidecar.MEGCoordinateSystem != "ElektaNeuromag"

NIRSCoordinateSystemDeprecation:
$ref: rules.checks.deprecations.AnatomicalLandmarkCoordinateSystemDeprecation
selectors:
- sidecar.NIRSCoordinateSystem
checks:
- sidecar.NIRSCoordinateSystem != "ElektaNeuromag"

0 comments on commit db6b07d

Please sign in to comment.