Describe the bug
When saving a Table with an empty Column (Header and Type is specified!) and then loading, the empty Column is not loaded.
DEVS' SECTION
ANALYSIS
That might be related to a call to Memory::shrink() in FileHeaderInfo FileAdapter::openFile(...), because the mentioned information is stored in file (as long as it is not related to trailing columns, because those might be ignored upon load). During writing, some error occurs, because data is written for empty columns (might be data representatons of NAN). The reason might be , that the end index of the VectorIndex inserted into std::vector<std::complex<double>> TableColumn::getValue(...) and similar is calculated erroneously in this case. This has to be resolved first, before the actual problem is located in the end.
DESCRIPTION
Describe the bug When saving a Table with an empty Column (Header and Type is specified!) and then loading, the empty Column is not loaded.
DEVS' SECTION
ANALYSIS
That might be related to a call to
Memory::shrink()
inFileHeaderInfo FileAdapter::openFile(...)
, because the mentioned information is stored in file (as long as it is not related to trailing columns, because those might be ignored upon load). During writing, some error occurs, because data is written for empty columns (might be data representatons ofNAN
). The reason might be , that the end index of theVectorIndex
inserted intostd::vector<std::complex<double>> TableColumn::getValue(...)
and similar is calculated erroneously in this case. This has to be resolved first, before the actual problem is located in the end.IMPLEMENTATION STEPS
(see also our Wiki for implementation guidelines)
DOCUMENTATION STEPS
(see also our Wiki for further information)
*.NHLP
and*.NDB
files, if needed)*.NLNG
files, if needed)PULL REQUEST