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.
Preparation tasks for the macro-issue "adding proper and meaty unit tests to pynxtools-em"
are expected to have a different binary content
improve the chances to spot if using different versions of libraries in pynxtools-em result in different
numerical results when the content otherwise i.e. datatype and HDF5 template path wise looks right
Using a checksum that evaluates the bits will help spot these issues.
In a nutshell, this PR prepares that one can assert the content of the filtrated instances data from two HDF5 files,
like we in unit tests already do it in e.g. nyaml for XML and YAML files.
There are two more issues related to unit tests for pynxtools-em but these will be handled via other issues:
examples that we cannot share, because the plan is to upload the test data to e.g. zenodo and then have
CICD download the testdata from zenodo in a loop for each test (parameterized)
compare with the reference.
whereby payload data will be altered despite correct computation and thus the hash may turn out
different. Currently we assume though in all our tests that these CICD servers are modern and
well-maintained hardware so this scenario is rather hypothetical but still should be kept in mind
This is an exemplar snippet from such yaml artifact: