GUI: many table values are computed on-the-fly
When populating the data tables in the GUI, many values are computed on-the-fly, meaning that if unhandled exception is raised, the GUI crashes. E.g. I scroll down the list of peaks found by the peakfinder, and it computes correctedIntensity()
on the fly. This generates a std::range_error
for a state that can't be interpolated on the last frame of the data set, resulting in a crash.
Is computing table values on-the-fly an acceptable thing to do?