Skip to content

Commit 3575c56

Browse files
committed
linting
1 parent 3a2c80f commit 3575c56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • python/lib/sift_client/_internal/util

python/lib/sift_client/_internal/util/hdf5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
def _detect_attr(dataset: h5py.Dataset, candidates: list[str], default: str = "") -> str:
3939
"""Return the first matching HDF5 attribute value, or *default*."""
4040
possible = [dataset.attrs.get(attr) for attr in candidates if dataset.attrs.get(attr)]
41-
return possible[0] if possible else default
41+
return str(possible[0]) if possible else default
4242

4343

4444
def _numpy_to_sift_type(dtype: np.dtype) -> ChannelDataType:

0 commit comments

Comments
 (0)