Commit 0ae9589c authored by Tomas Farago's avatar Tomas Farago
Browse files

[HDF5TomoScan] add an other way to find a valid nxtomo entry

parent 6791a226
Pipeline #37927 passed with stages
in 18 minutes and 34 seconds
......@@ -268,6 +268,13 @@ class HDF5TomoScan(TomoScanBase):
if "definition" in node.attrs and node.attrs["definition"].lower() == "nxtomo":
_logger.info(node.name + " is recognized as an NXtomo class.")
return True
elif (
"instrument" in node
and "NX_class" in node["instrument"].attrs
and node["instrument"].attrs["NX_class"] == "NXinstrument"
):
instrument_node = node["instrument"]
return "detector" in node["instrument"]
else:
return False
......
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