Skip to content

Commit

Permalink
resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
genematx committed Aug 12, 2024
2 parents 09d6808 + 08f255d commit 2ed822f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tiled/server/zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ def convert_chunks_for_zarr(tiled_chunks: Tuple[Tuple[int]]):
Zarr only accepts chunks of constant size along each dimension; this function finds a unique representation of
(possibly variable-sized chunks) internal to Tiled ArrayAdapter in terms of zarr blocks.
"""
<<<<<<< HEAD
return [min(ZARR_BLOCK_SIZE, max(tc)) for tc in tiled_chunks]
=======
return [min(ZARR_BLOCK_SIZE, max(c)) for c in tiled_chunks]
>>>>>>> 08f255d687118b1983cf1019b375d7d6f948ce2e

@router.get("{path:path}.zgroup", name="Root .zgroup metadata")
@router.get("/{path:path}/.zgroup", name="Zarr .zgroup metadata")
Expand All @@ -106,7 +110,10 @@ async def get_zarr_array_metadata(
entry=SecureEntry(scopes=["read:data", "read:metadata"],
structure_families={StructureFamily.array, StructureFamily.sparse, StructureFamily.table}),
):
<<<<<<< HEAD
breakpoint()
=======
>>>>>>> 08f255d687118b1983cf1019b375d7d6f948ce2e
if entry.structure_family in {StructureFamily.array, StructureFamily.sparse}:
try:
metadata = entry.metadata()
Expand Down

0 comments on commit 2ed822f

Please sign in to comment.