Skip to content

Commit fa3c393

Browse files
committed
fix for isExtensible
1 parent 482ef8d commit fa3c393

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/h5json/shape_util.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,8 @@ def isExtensible(obj_json):
214214
rank = len(dims)
215215
if len(maxdims) != rank:
216216
raise ValueError("rank of maxdims does not match dataset")
217-
for n in range(rank):
218-
if maxdims[n] in (0, "H5S_UNLIMITED") or maxdims[n] > dims[n]:
219-
return True
220-
return False
217+
218+
return True
221219

222220

223221
def getMaxDims(obj_json):

0 commit comments

Comments
 (0)