MideTechnology / idelib

Python API for accessing .IDE data recordings made by enDAQ devices.
MIT License
5 stars 0 forks source link

Batch MAT export fail #124

Closed StokesMIDE closed 10 months ago

StokesMIDE commented 2 years ago

When the batch MAT exporter is used in enDAQ Lab, it fails due to this line in matfile.py: https://github.com/MideTechnology/idelib/blob/7b0e0deebbda09b58f47a2ff79802ec71dd5e1b4/idelib/matfile.py#L736 The intention is to add the time to the start of the array. This worked in earlier versions in which the data (v) were tuples. Now that it's Numpy arrays, this just adds the timestamp to each column. It should be something like this:

matfile.writeRow(np.append([createTime + t], v))

There may be other places where + is used to concatenate tuples/lists. These should be sought out.

Note: this only affects batch exporting in enDAQ Lab.