def set_fft_params(func):
@wraps(func)<EOL>def wrapped_func(series, method_func, *args, **kwargs):<EOL><INDENT>"""<STR_LIT>"""<EOL>if isinstance(series, tuple):<EOL><INDENT>data = series[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>data = series<EOL><DEDENT>normalize_fft_params(data, kwargs=kwargs, func=method_func)<EOL>return func(series, method_func, *args, **kwargs)<EOL><DEDENT>return wrapped_func<EOL>
Decorate a method to automatically convert quantities to samples