Replace precomputed baselines by computation when needed
The computation of baselines is non-trivial. That is probably why it was done using two nested for loops, after which the result was stored as a member variable of the Aartfaac2ms
class. A new function compute_baseline_index
is added that compute the baseline index given its index. The _baselines
member is removed and in various places the code could be simplified by using this new function.