Skip to content

Commit 55c8598

Browse files
committed
update for h5json changes
1 parent a2ca1ee commit 55c8598

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

hsds/servicenode_lib.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ def getCreateArgs(body,
14511451
return kwargs
14521452

14531453

1454-
def genLayout(shape_json, item_size, has_filters=False):
1454+
def genLayout(shape_json, type_json, has_filters=False):
14551455
""" create a chunked or contiguous layout based on shape and itemsize """
14561456

14571457
min_chunk_size = int(config.get("min_chunk_size"))
@@ -1464,7 +1464,7 @@ def genLayout(shape_json, item_size, has_filters=False):
14641464
if has_filters:
14651465
kwargs["chunks"] = True # force a chunked layout to support compression
14661466

1467-
layout_json = generateLayout(shape_json, item_size, **kwargs)
1467+
layout_json = generateLayout(shape_json, type_json, **kwargs)
14681468
return layout_json
14691469

14701470

@@ -1584,7 +1584,7 @@ def getDatasetCreateArgs(body,
15841584
log.warn(msg)
15851585
else:
15861586
# no layout, create one based on shape and itemsize
1587-
layout_json = genLayout(shape_json, item_size, has_filters=has_filters)
1587+
layout_json = genLayout(shape_json, type_json, has_filters=has_filters)
15881588
log.info(f"created chunk layout for new dset: {layout_json}")
15891589
creation_props["layout"] = layout_json
15901590

0 commit comments

Comments
 (0)