diff --git a/+io/+config/+internal/computeChunkSizeFromConfig.m b/+io/+config/+internal/computeChunkSizeFromConfig.m index 14f0d7d7..fdfa5a34 100644 --- a/+io/+config/+internal/computeChunkSizeFromConfig.m +++ b/+io/+config/+internal/computeChunkSizeFromConfig.m @@ -23,7 +23,7 @@ numDimensions = numel(dataSize); % Extract relevant configuration parameters - chunkDimensions = squeeze(chunkSpecification.data.chunk_dimensions); + chunkDimensions = chunkSpecification.data.chunk_dimensions; defaultChunkSize = chunkSpecification.chunk_default_size; % in bytes dataByteSize = io.config.internal.getDataByteSize(A); diff --git a/+io/+config/applyChunkConfiguration.m b/+io/+config/applyChunkConfiguration.m index 6f59fb45..e0d0856e 100644 --- a/+io/+config/applyChunkConfiguration.m +++ b/+io/+config/applyChunkConfiguration.m @@ -29,7 +29,7 @@ function applyChunkConfiguration(nwbObject, chunkConfiguration) dataTypeChunkOptions = io.config.internal.resolveDataTypeChunkConfig(chunkConfiguration, thisNwbObject); if isprop(thisNwbObject, 'data') - if ~isa(thisNwbObject.data, 'types.untyped.DataPipe') + if isnumeric(thisNwbObject.data) % Create a datapipe object for the property value. dataByteSize = io.config.internal.getDataByteSize(thisNwbObject.data); if dataByteSize > dataTypeChunkOptions.chunk_default_size