.mat
store ints as doubles
#327
Labels
bug
Something isn't working
housekeeping
Code cleanup
investigation
A study or investigation of something.
.mat
files save values as doubles by default, and thus the.mat
inputs that we provide to TDMS have values stored asdouble
when we are expecting to read them intostd::vector<int>
for example.This causes segmentation faults when we attempt to read in data that we expect to be integer-valued, using the
HDF5
C++
API.There are several variables that we attempt to read in as ints. Creating a list of known places here which will be added to as more are found.
Known variables that are affected:
campssample
->components
(saved as double but containsint
values). Appears inVertexPhasors
.fieldsample
->i,j,k
(saved as double but containsint
values). Appears inFieldSample
.We can circumnavigate this by introducing intermediary buffers in our read methods, but this is not ideal.
iteratefdtd_matrix
and others) are written.The text was updated successfully, but these errors were encountered: