tests.nexus.test_nxmx.test_nxdetector_group
| Tags | |
|---|---|
| Last edited time |
delete test
Error Message
AttributeError: 'Dataset' object has no attribute 'asstr'Stacktrace
detector_group = <HDF5 file " " (mode r+)>
def test_nxdetector_group(detector_group):
group = nxmx.NXmx(detector_group).entries[0].instruments[0].detector_groups[0]
> assert list(group.group_names) == ["DET", "DTL", "DTR", "DLL", "DLR"]
../lib/python3.9/site-packages/dxtbx/tests/nexus/test_nxmx.py:388:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../Frameworks/Python.framework/Versions/3.9/lib/python3.9/functools.py:982: in __get__
val = self.func(instance)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dxtbx.nexus.nxmx.NXdetector_group object at 0x128dd6cd0>
@cached_property
def group_names(self) -> np.ndarray:
"""
An array of the names of the detectors or the names of hierarchical groupings of
detectors.
"""
> return self._handle["group_names"].asstr()[()]
E AttributeError: 'Dataset' object has no attribute 'asstr'
../lib/python3.9/site-packages/dxtbx/src/dxtbx/nexus/nxmx.py:661: AttributeError