Skip to content

Commit

Permalink
FIX: Selectors to match required/optional conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Nov 10, 2023
1 parent 20b5214 commit 02a6f85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/schema/rules/checks/nirs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,28 @@ NIRSChannelCount:
ACCELChannelCountReq:
selectors:
- suffix == "nirs"
- count(associations.channels.type, "ACCEL") > 0
checks:
- sidecar.ACCELChannelCount == count(associations.channels.type, "ACCEL")

GYROChannelCountReq:
selectors:
- suffix == "nirs"
- count(associations.channels.type, "GYRO") > 0
checks:
- sidecar.GYROChannelCount == count(associations.channels.type, "GYRO")

MAGNChannelCountReq:
selectors:
- suffix == "nirs"
- count(associations.channels.type, "MAGN") > 0
checks:
- sidecar.MAGNChannelCount == count(associations.channels.type, "MAGN")

ShortChannelCountReq:
selectors:
- suffix == "nirs"
- '"ShortChannelCount" in sidecar'
checks:
- sidecar.ShortChannelCount == count(associations.channels.short_channel, "true")

Expand Down

0 comments on commit 02a6f85

Please sign in to comment.