Fix correction addon interface
This adds device
and prefix
parameters to correction addons constructor. It allows to avoid the additional injection of this parameters in base_correction
outside the interface and get rig of additional initialization call after it.
Merge request reports
Activity
In some cases (e.g. autocorrelation addon) you need to know these additional parameters (device and prefix) on initialization. In the variant before, we need another
initialization
call, which is triggered after these fields set. But if we put these parameters as arguments of__init__
we actually can do everything in__init__
and don't need additional initialization code.
Thanks, @hammerd. Please merge it whenever you think it is fine. I don't have permissions to that anyway.
mentioned in commit d40d8e70