Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ehennestad committed Nov 23, 2024
1 parent 4822417 commit cfdefd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion +io/+config/+internal/computeChunkSizeFromConfig.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion +io/+config/applyChunkConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cfdefd6

Please sign in to comment.