-
Notifications
You must be signed in to change notification settings - Fork 10
Validation based on hdf tree traversal #333
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
Merged
Merged
Changes from all commits
Commits
Show all changes
84 commits
Select commit
Hold shift + click to select a range
a2df01c
First ideas of validation based on hdf tree traversal
domna 76310cb
Improved get_children_names function
domna fa2cb26
Read extends keyword from file
domna 31d0cbc
Insert extends parents into the inheritance chain
domna cfffe29
Automatically populate tree from appdef parents
domna 6c98778
Only populate tree if parents are present
domna 58de3fb
Docstring improvements
domna b759166
If minOccurs == 0, set the group to optional
domna c938beb
Add extended NXtest
domna b9842df
Fix function name
domna 7ce64ec
Do actual field checks
domna 8f34dda
Add cli and units support
domna 311f26f
Include units files in package
domna 2054374
Add working validation
domna e972a61
Use node_type in find_node_for
domna f88ebd9
Fix tests
domna 2262db3
Fixes from merging
domna 6dd0f27
Import ureg for units validation
domna efecd29
Adding some test files for hdf5_validator.
RubelMozumder ae4ec4e
pytest for hdf5 validation.
RubelMozumder ca06732
test for nexus file validation.
RubelMozumder b94d8a5
VisitingCode-1
RubelMozumder 6d4c70a
fix rebase issues
lukaspie 3d5534d
clean up namefitting
lukaspie 38e87d3
add ignore-undocumented flag for verify_nexus
lukaspie 936eca1
implement special checks for NXcollection
lukaspie 53d940b
implement check for reserved prefixes
lukaspie 55aa22e
implement check for reserved suffixes
lukaspie cbd78a9
haandle 'object' dtype separately (for lists from HDF5 files)
lukaspie 67b50b3
proper handling of NXdata groups
lukaspie a408342
handle lists and enumerated lists
lukaspie 966b53e
separate function from cli tool to use in test framework
lukaspie 87cdee8
fix selection of nxdl roots
lukaspie 42981b9
remove unneeded NXDL test files
lukaspie 9edfb37
start fixing tests
lukaspie 191050a
check for required groups
lukaspie 145d0d6
fix test for reserved prefixes
lukaspie 5eb9250
adjust error messages, check for documented in variadic concepts, ch…
lukaspie 8438d3c
clear collector between runs
lukaspie 0cf6bc4
use the same error message for missing concepts
lukaspie 0e76e1d
further fixes for finding undocumented terms
lukaspie b42b1c7
fixes for checking documented concepts
lukaspie cfa557d
rename functionality to 'validate'
lukaspie adeecf1
check target attribute
lukaspie 9de28a8
follow links, check target attribute
lukaspie 879f187
validate link targets
lukaspie d651e7c
use custom visititems for link checking
lukaspie 7b36f93
fix required children checking
lukaspie 24ad3fb
use correct function in test framework
lukaspie 22ba545
add docstrings
lukaspie 520bb21
remove unneeded changes
lukaspie d20aa9d
mypy fixes
lukaspie b2380b8
use hints for NXdata fields, log only once
lukaspie b2ca51f
use caplog_level for validation in testing framework
lukaspie 2b811cf
add test for compressed payload from template
lukaspie 36f5eed
unpack compressed tuples
lukaspie ace0a1e
check enums that are lists
lukaspie 0f6dcdd
check for target attribute in template link
lukaspie 3bf51c1
rename function argument
lukaspie b93de90
update docs
lukaspie 1efa653
remove test_nxdl path in dev_tools
lukaspie f17a877
make clean_str_attr function more robust
lukaspie b9443dd
return non-strings as-is
lukaspie f815e89
New rules around `@target` attribute
lukaspie be2aefc
fix a couple more test cases
lukaspie 612bafd
Apply suggestions from code review
lukaspie 64593b4
replace custom func with a function from dev_tools
lukaspie cf04151
define level map at object level
lukaspie 0bbbe5b
refactor docs
lukaspie 1d5e94b
ignore groups without NX_class attribute (and fields/attributes) within
lukaspie 68f51de
remove duplicate import
lukaspie 4db564b
mypy fixes
lukaspie df77ac7
simpliy one test case
lukaspie 3433ccd
clean up unneeded imports
lukaspie ede91a0
warning message for invalid entries
lukaspie f871da9
rename node.type to node.nx_type
lukaspie 1c83210
revert package downgrade
lukaspie 85012e9
extract function for checking reserved prefixes
lukaspie e149934
remove unusable code for checking link types
lukaspie 769bfd8
use a unified function for checking reserved suffixes
lukaspie 28371b0
clean up template if group/field was linked to field/group
lukaspie d1fa472
report missing if an invalid link was used for required concept
lukaspie ecb741f
fix remaning test case
lukaspie 372a879
align output for appdef and baseclass checks
lukaspie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.