We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c76800 commit fa39787Copy full SHA for fa39787
src/dxtbx/format/FormatNXmx.py
@@ -74,13 +74,16 @@ class FormatNXmx(FormatNexus):
74
@staticmethod
75
def understand(image_file):
76
with h5py.File(image_file) as handle:
77
- return bool(
78
- [
79
- entry
80
- for entry in nxmx.find_class(handle, "NXentry")
81
- if "definition" in entry
82
- and nxmx.h5str(entry["definition"][()]) == "NXmx"
83
- ]
+ return (
+ bool(
+ [
+ entry
+ for entry in nxmx.find_class(handle, "NXentry")
+ if "definition" in entry
+ and nxmx.h5str(entry["definition"][()]) == "NXmx"
84
+ ]
85
+ )
86
+ and "/entry/data/data" in handle
87
)
88
89
def __init__(self, image_file, **kwargs):
0 commit comments