Refactor code so that a variable number of arrays can be provided that will be interpolated onto the base array's frequency points and then added to the base array.
Current Function Signature
def apply_antenna_factor(analyzer_readings, antenna_factors,
cable_losses=False, keep_max=True):
Potential New Function Signature
def apply_antenna_factor(base_array, keep_max=True, *args, **kwargs):
Then iterate through args and kwargs and interpolate and add as needed.
Refactor code so that a variable number of arrays can be provided that will be interpolated onto the base array's frequency points and then added to the base array.
Current Function Signature
Potential New Function Signature
Then iterate through
argsandkwargsand interpolate and add as needed.