Implement `frame` Dict
Whenever one writes a test, debugs or just investigates something, it would be nice to have the relevant physical observables as a Dict similar to self.results
. One can then further simplify code and make things less error prone if the handling of averaging and error calculation for those observables was handled by the main class.
There would be three Dicts:
self.results.frame
self.results.means
self.results.vars
results.frame
contains the observables of the current frame as processed by the _single_frame
method. results.means
contains the averages over all frames and ``results.vars` all the variances. Means and variances can be calculated iteratively, so one does not need to store the observables for all frames until the end.