Skip to content

Commit

Permalink
Merge pull request bids-standard#1950 from rwblair/schema/fix_ds_rela…
Browse files Browse the repository at this point in the history
…tive_contains

Fix exists for derivative paths in raw datasets.
  • Loading branch information
effigies authored Apr 23, 2024
2 parents 3687c71 + 650d21b commit bc348eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bids-validator/src/validators/bids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export async function validate(
derivatives.push(deriv)
}
})
return false
return true
}
return true
})
Expand All @@ -75,6 +75,9 @@ export async function validate(
if (context.file.ignored) {
continue
}
if (dsContext.dataset_description.DatasetType == 'raw' && context.file.path.includes('derivatives')) {
continue
}
await context.asyncLoads()
// Run majority of checks
for (const check of CHECKS) {
Expand Down

0 comments on commit bc348eb

Please sign in to comment.