Skip to content

Commit

Permalink
Hint at rebuilding dataset if backend fails
Browse files Browse the repository at this point in the history
  • Loading branch information
druzsan committed Oct 27, 2023
1 parent f9b3285 commit a0fdea5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions renumics/spotlight_plugins/core/hdf5_data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ def read_column(
raw_values = np.array([x.decode("utf-8") for x in raw_values])

if self._is_ref_column(column):
if not is_string_dtype:
raise RuntimeError(
"Only new-style string h5 references supported. Update "
"your dataset using `dataset.rebuild()`."
)
assert is_string_dtype, "Only new-style string h5 references supported."
normalized_values = np.empty(len(raw_values), dtype=object)
normalized_values[:] = [
Expand Down

0 comments on commit a0fdea5

Please sign in to comment.