Skip to content

Commit

Permalink
remove commented out code block
Browse files Browse the repository at this point in the history
  • Loading branch information
jreadey committed Nov 7, 2024
1 parent deec334 commit f0369fc
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions h5pyd/_apps/utillib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1540,23 +1540,6 @@ def write_dataset(src, tgt, ctx):
if ctx["verbose"]:
print(msg)
try:
"""
if src.chunks is None:
# contiguous dataset, fake an iterator by creating a list
# with one slice
slices = []
for dim in range(rank):
extent = src.shape[dim]
s = slice(0, extent, 1)
slices.append(s)
slices = tuple(slices)
if rank == 1:
it = [slices[0],]
else:
it = [slices,]
else:
it = src.iter_chunks()
"""
logging.debug(f"src dtype: {src.dtype}")
logging.debug(f"des dtype: {tgt.dtype}")

Expand Down

0 comments on commit f0369fc

Please sign in to comment.