The current version of lumomat (v1.8.0) outputs a NIRS structure which does not fully align with the Homer2's user guide (user guide). Currently, if event markers are missing from the .lufr output file, the _writeNIRS() function inserts an empty array into the s field. Additionally, the aux field containing the auxiliary data is missing altogether. As a result, the converted NIRS structure is incompatible with Homer2, which, as per the user guide, requires both aux and s fields to successfully load NIRS data.
This pull request enhances the compatibility of lumomat with Homer2 by:
replacing the empty array in s with a zero matrix matching the size of the time vector t;
adding a temporary aux field into the NIRS structure, also as a zero matrix matching the size of the time vector t.
The current version of lumomat (v1.8.0) outputs a NIRS structure which does not fully align with the Homer2's user guide (user guide). Currently, if event markers are missing from the .lufr output file, the _writeNIRS() function inserts an empty array into the
s
field. Additionally, theaux
field containing the auxiliary data is missing altogether. As a result, the converted NIRS structure is incompatible with Homer2, which, as per the user guide, requires bothaux
ands
fields to successfully load NIRS data.This pull request enhances the compatibility of lumomat with Homer2 by:
s
with a zero matrix matching the size of the time vectort
;aux
field into the NIRS structure, also as a zero matrix matching the size of the time vectort
.