-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strings that should be scalars are arrays for multiple items in all sample files #9
Comments
Actually, it's not only strings, also for other data types there is the same issue. |
@kdarti, these example files were produced before the SNIRF spec was fully refined and the validator was developed. They are currently produced by a general purpose HDF5 reader/writer I wrote for matlab (EasyH5), but EasyH5 handles general data arrays, and is not particularly validating/restricting specific data types in SNIRF fields. The SNIRF-specific data types are supposed to be reinforced in the jsnirfy toolbox . last year, I made the following commits in jsnirfy toolbox to force array-shaped strings to variable-length string (scalar type) but I did not rebuild the sample files. I just committed an updated .snirf files regenerated using the latest easyh5 and jsnirfy toolboxes. the string variables are now scalars. please verify. |
snirf spec states that /nirs/aux/name strings should be stored as scalars, the same goes for each item under metadatatags
e.g
2nd dim always equals number of characters in string.
The text was updated successfully, but these errors were encountered: