BUNPC / Homer3

MATLAB application for fNIRS data processing and visualization
93 stars 55 forks source link

fix(snirf): remove additional argument #171

Closed buck06191 closed 1 year ago

buck06191 commented 1 year ago

What

The write_numeric_array function was being passed 4 arguments when it only takes 3. Presumably this was related to a mix up with write_numeric which takes 4 arguments.

This would lead to the following error when calling SaveHdf5 on a SnirfClass object.

Error using hdf5write_safe>write_numeric_array
Too many input arguments.

Error in hdf5write_safe (line 58)
            write_numeric_array(fid, fname, name, val);  % As of now, no integer arrays exist

Error in DataClass/SaveHdf5 (line 250)
            hdf5write_safe(fileobj, [location, '/time'], obj.time, 'array');

Error in SnirfClass/SaveData (line 667)
                obj.data(ii).SaveHdf5(fileobj, [obj.location, '/data', num2str(ii)]);

Error in SnirfClass/SaveHdf5 (line 728)
            obj.SaveData(fileobj);