Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
- id: check-yaml
- id: detect-private-key
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.26.0"
rev: "v2.28.2"
hooks:
- id: pyproject-fmt
- repo: https://github.com/citation-file-format/cffconvert
Expand Down Expand Up @@ -39,7 +39,7 @@ repos:
- id: yamllint
exclude: pre-commit-config.yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.16.0"
rev: "v0.16.5"
hooks:
- id: ruff-format
- id: ruff-check
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ from ome_arrow import OMEArrow

# Ingest a tif image through a convenient OME Arrow class
# We can also ingest OME-Zarr or NumPy arrays.
oa_image = OMEArrow(
data="your_image.tif"
)
oa_image = OMEArrow(data="your_image.tif")

# Access the OME Arrow struct itself
# (compatible with Arrow-compliant data storage).
Expand Down
4 changes: 1 addition & 3 deletions docs/src/dlpack.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,7 @@ obj = OMEArrow("example.ome.parquet")
view = obj.tensor_view(t=0, z=0)

# Tile over spatial region.
for cap in view.iter_dlpack(
tile_size=(256, 256), shuffle=True, seed=123, mode="numpy"
):
for cap in view.iter_dlpack(tile_size=(256, 256), shuffle=True, seed=123, mode="numpy"):
tile = np.from_dlpack(cap)
# tile shape: (C, Y, X) in CYX layout
```
Expand Down
Loading