DM-35237 suggests we remove MeasurementError from measurement plugins that have access to a source record. This ticket is to do that in meas_extensions_trailedSources.
Improve efficiency of trailed source measurement
Ian Sullivan would you mind doing this small review? I change the use of MeasurementError to follow the discussion in DM-35237 and fix the log usage.
I did see that there are a lot of numpy math functions in here for scalar floats and in theory they are faster with math. There is also a calculation of the sqrt of PI for every call to measure, but looking at a profile there isn't much of a hotspot there even when called two hundred thousand times.
I've filed DM-35309 to do the efficiency improvements as a training exercise for one of our new developers.