Commit 4b31ca2b authored by Wout De Nolf's avatar Wout De Nolf
Browse files

Fix the expected HDF5 output for transfocator_simulator in the test suite

parent e121bb57
...@@ -512,18 +512,11 @@ def validate_instrument( ...@@ -512,18 +512,11 @@ def validate_instrument(
} }
content = dictdump.nxtodict(instrument["transfocator_simulator"], asarray=False) content = dictdump.nxtodict(instrument["transfocator_simulator"], asarray=False)
assert content == { assert content["@NX_class"] == "NXcollection"
"@NX_class": "NXcollection", # The value of the L and P datasets is `True`, `False` or `None`.
"L1": content["L1"], # A dataset value of `Ǹone` which is skipped by dicttonx;
"L2": content["L2"], maxkeys = {"@NX_class", "L1", "L2", "L3", "L4", "L5", "L6", "L7", "L8", "P0"}
"L3": content["L3"], assert not (set(content.keys()) - maxkeys)
"L4": content["L4"],
"L5": content["L5"],
"L6": content["L6"],
"L7": content["L7"],
"L8": content["L8"],
"P0": content["P0"],
}
content = dictdump.nxtodict(instrument["machine"], asarray=False) content = dictdump.nxtodict(instrument["machine"], asarray=False)
expected = { expected = {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment