@@ -106,8 +106,8 @@ function pyReloadInProcess()
106106 if any(params > dims )
107107 error(" MATLAB:Zarr:PartialReadOutOfBounds" ,...
108108 " Elements in %s must not exceed " +...
109- " the corresponding Zarr array dimensions (%s) ." ,...
110- paramName , join(string( dims ), " x " ) )
109+ " the corresponding Zarr array dimensions." ,...
110+ paramName )
111111 end
112112
113113 newParams = params ;
@@ -325,8 +325,7 @@ function makeZarrGroups(existingParentPath, newGroupsPath)
325325 if any(count > maxCount )
326326 error(" MATLAB:Zarr:PartialReadOutOfBounds" ,...
327327 " Requested Count in combination with other " +...
328- " partial read parameters exceeds " +...
329- " Zarr array dimensions." )
328+ " parameters exceeds Zarr array dimensions." )
330329 end
331330
332331 % Convert partial read parameters to tensorstore-style
@@ -344,19 +343,16 @@ function makeZarrGroups(existingParentPath, newGroupsPath)
344343 zeros(count , obj .Datatype .MATLABType );
345344 catch ME
346345 if strcmp(ME .identifier , ' MATLAB:array:SizeLimitExceeded' )
347- % rethrow(ME)
348346 error(" MATLAB:Zarr:OutOfMemory" ,...
349- " Reading requested data (%s %s array ) " +...
347+ " Reading requested data (%s %s matrix ) " +...
350348 " might exceed available memory." ,...
351- join(string(count ), " x " ), obj .Datatype .MATLABType )
349+ join(string(count ), " -by- " ), obj .Datatype .MATLABType )
352350 end
353351 end
354352
355353 % Read the data
356354 ndArrayData = Zarr .ZarrPy .readZarr(obj .KVStoreSchema ,...
357355 start , endInds , stride );
358-
359- % assert(ndArrayData.dtype.name == obj.Datatype.TensorstoreType)
360356
361357 % Convert the numpy array to MATLAB array
362358 data = cast(ndArrayData , obj .Datatype .MATLABType );
0 commit comments