Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 21, 2024
1 parent 9fa9b38 commit 4d5c46a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions virtualizarr/writers/icechunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,14 @@ def write_manifest_virtual_refs(
# loop over every reference in the ChunkManifest for that array
# TODO inefficient: this should be replaced with something that sets all (new) references for the array at once
# but Icechunk need to expose a suitable API first
it = np.nditer(
[manifest._paths, manifest._offsets, manifest._lengths], # type: ignore[arg-type]
it = np.nditer(
[manifest._paths, manifest._offsets, manifest._lengths], # type: ignore[arg-type]
flags=[
"refs_ok",
"multi_index",
"c_index", # TODO is "c_index" correct? what's the convention for zarr chunk keys?
], op_flags=[["readonly"]] * 3, # type: ignore
],
op_flags=[["readonly"]] * 3, # type: ignore
)
for path, offset, length in it:
index = it.multi_index
Expand Down

0 comments on commit 4d5c46a

Please sign in to comment.