Right now channels are calibrated all in the same iteration of a for loop, this makes the assumption that they are all the same length and makes catching NaN entries more difficult. A refactor of the way this is done would be beneficial.
One way would be to use the calibration coefficients as the iterator, I think we could derive this from the calib table with dictionary comprehension to get a list of calibration value keys to iterate over. Alternatively the calib_table could be restructured.
Right now channels are calibrated all in the same iteration of a for loop, this makes the assumption that they are all the same length and makes catching NaN entries more difficult. A refactor of the way this is done would be beneficial.
One way would be to use the calibration coefficients as the iterator, I think we could derive this from the calib table with dictionary comprehension to get a list of calibration value keys to iterate over. Alternatively the calib_table could be restructured.