Skip to content

Commit

Permalink
Merge pull request #522 from European-XFEL/validation-named-checks
Browse files Browse the repository at this point in the history
Allow skipping specific checks in extra-data-validate
  • Loading branch information
takluyver authored Jan 24, 2025
2 parents a165940 + 2ce79b5 commit 9814af1
Show file tree
Hide file tree
Showing 2 changed files with 236 additions and 175 deletions.
2 changes: 1 addition & 1 deletion extra_data/tests/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_zeros_in_train_ids(agipd_file):

with raises(ValidationError) as excinfo:
FileValidator(FileAccess(agipd_file)).validate()
problem = excinfo.value.problems.pop()
problem = excinfo.value.problems[0]
assert problem['msg'] == 'Zeroes in trainId index before last train ID'
assert problem['dataset'] == 'INDEX/trainId'
assert 'RAW-R0239-AGIPD00-S00000.h5' in problem['file']
Expand Down
Loading

0 comments on commit 9814af1

Please sign in to comment.