Skip to content
Snippets Groups Projects
Commit 94b369da authored by David Schäfer's avatar David Schäfer
Browse files

fix error in deprecation warning

parent 59a5d3d3
No related branches found
No related tags found
No related merge requests found
Pipeline #185217 failed with stages
in 3 minutes and 36 seconds
......@@ -477,15 +477,15 @@ class InterpolationMixin:
* ``'both'`` - perform forward and backward extrapolation
"""
call = (
f"qc.align(field={field}, freq={freq}, method={method}, "
f"order={order}, extrapolate={extrapolate})"
f'qc.align(field="{field}", freq="{freq}", method="{method}", '
f'order={order}, extrapolate="{extrapolate}")'
)
if limit != 2:
call = (
f"{call}.interpolate(field={field}, method={method}, "
f"order={order}, limit={limit}, extrapolate={extrapolate})"
f'qc.interpolate(field="{field}", method="{method}", '
f'order="{order}", limit="{limit}", extrapolate="{extrapolate}")'
)
warnings.warn(f"{msg}`{call}`", DeprecationWarning)
warnings.warn(f"The method interpolateIndex is deprectated and will be removed with SaQC==3.0. Use `{call}` instead", DeprecationWarning)
# HINT: checking is delegated to called functions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment