numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
20 stars 7 forks source link

[BUG] Load/Save Table with empty column #225

Closed mstranne closed 2 months ago

mstranne commented 4 months ago

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() 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.

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST

numeredev commented 4 months ago

There's also a problem with saving (might also be only be within the current development version)