We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a2c80f commit 3575c56Copy full SHA for 3575c56
1 file changed
python/lib/sift_client/_internal/util/hdf5.py
@@ -38,7 +38,7 @@
38
def _detect_attr(dataset: h5py.Dataset, candidates: list[str], default: str = "") -> str:
39
"""Return the first matching HDF5 attribute value, or *default*."""
40
possible = [dataset.attrs.get(attr) for attr in candidates if dataset.attrs.get(attr)]
41
- return possible[0] if possible else default
+ return str(possible[0]) if possible else default
42
43
44
def _numpy_to_sift_type(dtype: np.dtype) -> ChannelDataType:
0 commit comments