Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deprecation check for ElektaNeuromagMEGIN in schema #1848

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading