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 308a508 commit 60cb43e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions virtualizarr/writers/icechunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,14 @@ def write_manifest_virtual_refs(
# but Icechunk need to expose a suitable API first
it = np.nditer(
[manifest._paths, manifest._offsets, manifest._lengths],
flags=cast(Sequence[np._NDIterFlagsKind], [
"refs_ok",
"multi_index",
"c_index", # TODO is "c_index" correct? what's the convention for zarr chunk keys?
]),
flags=cast(
Sequence[np._NDIterFlagsKind],
[
"refs_ok",
"multi_index",
"c_index", # TODO is "c_index" correct? what's the convention for zarr chunk keys?
],
),
op_flags=cast(Sequence[Sequence[np._NDIterOpFlagsKind]], [["readonly"]] * 3),
)
for path, offset, length in it:
Expand Down

0 comments on commit 60cb43e

Please sign in to comment.