diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fbb54c8..236ffb2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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 diff --git a/README.md b/README.md index a66cf3f..958fd6d 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/docs/src/dlpack.md b/docs/src/dlpack.md index 8648af9..e9cb32d 100644 --- a/docs/src/dlpack.md +++ b/docs/src/dlpack.md @@ -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 ```