@@ -106,8 +106,8 @@ function pyReloadInProcess()
106
106
if any(params > dims )
107
107
error(" MATLAB:Zarr:PartialReadOutOfBounds" ,...
108
108
" 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 )
111
111
end
112
112
113
113
newParams = params ;
@@ -325,8 +325,7 @@ function makeZarrGroups(existingParentPath, newGroupsPath)
325
325
if any(count > maxCount )
326
326
error(" MATLAB:Zarr:PartialReadOutOfBounds" ,...
327
327
" Requested Count in combination with other " +...
328
- " partial read parameters exceeds " +...
329
- " Zarr array dimensions." )
328
+ " parameters exceeds Zarr array dimensions." )
330
329
end
331
330
332
331
% Convert partial read parameters to tensorstore-style
@@ -344,19 +343,16 @@ function makeZarrGroups(existingParentPath, newGroupsPath)
344
343
zeros(count , obj .Datatype .MATLABType );
345
344
catch ME
346
345
if strcmp(ME .identifier , ' MATLAB:array:SizeLimitExceeded' )
347
- % rethrow(ME)
348
346
error(" MATLAB:Zarr:OutOfMemory" ,...
349
- " Reading requested data (%s %s array ) " +...
347
+ " Reading requested data (%s %s matrix ) " +...
350
348
" might exceed available memory." ,...
351
- join(string(count ), " x " ), obj .Datatype .MATLABType )
349
+ join(string(count ), " -by- " ), obj .Datatype .MATLABType )
352
350
end
353
351
end
354
352
355
353
% Read the data
356
354
ndArrayData = Zarr .ZarrPy .readZarr(obj .KVStoreSchema ,...
357
355
start , endInds , stride );
358
-
359
- % assert(ndArrayData.dtype.name == obj.Datatype.TensorstoreType)
360
356
361
357
% Convert the numpy array to MATLAB array
362
358
data = cast(ndArrayData , obj .Datatype .MATLABType );
0 commit comments