Skip to content

Commit 4b2095b

Browse files
author
Abhi Baruah
committed
Test 2
1 parent 40f6f02 commit 4b2095b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

PythonModule/ZarrPy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def createZarr(kvstore_schema, data_shape, chunk_shape, tstoreDataType, zarrData
2020
- compressor (dictionary): The compression to be used for the Zarr array.
2121
- fillvalue (numeric scalar): The fill value to be used for the Zarr array.
2222
"""
23+
print(data_shape)
2324
schema = {
2425
'driver': 'zarr',
2526
'kvstore': kvstore_schema,

test/tZarrWrite.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function createArrayLocalDefaultSyntax(testcase,ArrSizeWrite)
1717
% datatype is double.;
1818
zarrcreate(testcase.ArrPathWrite,ArrSizeWrite);
1919
if isscalar(ArrSizeWrite)
20-
expData = rand(ArrSizeWrite, 1);
20+
expData = 1:10;
2121
else
2222
expData = rand(ArrSizeWrite);
2323
end

zarrcreate.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ function zarrcreate(filepath, datashape, options)
8484
error("Chunk size cannot be greater than size of the data to be written.");
8585
end
8686
if isscalar(datashape)
87-
datashape = [datashape 1];
88-
options.ChunkSize = [options.ChunkSize 1];
87+
datashape = [1 datashape];
88+
options.ChunkSize = [1 options.ChunkSize];
8989
end
9090

9191
zarrObj.create(options.Datatype, datashape, options.ChunkSize, options.FillValue, options.Compression)

0 commit comments

Comments
 (0)