G-Node / G-Node/nix-mx

IO Error in H5DataSet

Open
#110 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
MATLAB
Stars
4
Forks
6
PR merge metrics
No merged PRs in 30d

Description

When trying to write to a DataArray, an IO Error will occur, if the product value of the data used does not match the product value of the defined shape of the DataArray.

e.g.

```
da = b.create_data_array('name', 'type', nix.DataType.Double, [2 4]);
% will accept only arrays containing the following values,
% any other values will lead to an IO Error.
da.write_all([2 4])
da.write_all([4 2])
da.write_all([8])
da.write_all([2 2 2])
```

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by reproducing the issue with H5DataSet/DataArray.write_all using the shapes in the example, then trace the MATLAB binding's write path to identify why mismatched products produce an IO Error. Done should be defined by the intended handling of valid and invalid array sizes.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.