Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions rationai/mlkit/data/datasets/slides_tiles_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ def _build_tile_index(tiles: HFDataset) -> dict[str | bytes, pa.ListScalar]:
if len(tiles) == 0:
return {}

# 1. Grab the column directly from the underlying PyArrow Table
slide_ids = tiles.data.column("slide_id")
num_rows = len(slide_ids)
# 1. Read slide_id as Arrow data, respecting any prior .filter() / .select().
slide_ids = tiles.with_format("arrow")["slide_id"]
num_rows = len(tiles)

# 2. Handle the "Large" type conversion
current_type = slide_ids.type
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading