Skip to content
Snippets Groups Projects

Several fixes and refactorings to the interpolation methods

Closed David Schäfer requested to merge interpolation_fixes into develop
2 unresolved threads
4 files
+ 26
22
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -143,7 +143,7 @@ class InterpolationMixin:
field: str,
method: _SUPPORTED_METHODS,
order: int = 2,
limit: int = 2,
limit: int | None = None,
flag: float = UNFLAGGED,
**kwargs,
) -> "SaQC":
@@ -166,9 +166,8 @@ class InterpolationMixin:
If there your selected interpolation method can be performed at different 'orders' - here you pass the desired
order.
limit : int, default 2
Maximum number of consecutive 'nan' values allowed for a gap to be interpolated. This really restricts the
interpolation to chunks, containing not more than `limit` successive nan entries.
limit : int, optional
Maximum number of consecutive `nan` values to fill. Must be greater than 0.
flag : float or None, default UNFLAGGED
Flag that is set for interpolated values. If ``None``, no flags are set at all.
@@ -203,7 +202,7 @@ class InterpolationMixin:
freq: str,
method: _SUPPORTED_METHODS,
order: int = 2,
limit: int = 2,
limit: int | None = None,
**kwargs,
) -> "SaQC":
"""
@@ -229,9 +228,8 @@ class InterpolationMixin:
If there your selected interpolation method can be performed at different 'orders' - here you pass the desired
order.
limit : int, default 2
Maximum number of consecutive 'nan' values allowed for a gap to be interpolated. This really restricts the
interpolation to chunks, containing not more than `limit` successive nan entries.
limit : int, optional
Maximum number of missing index values (with respect to `freq`) to fill. Must be greater than 0.
Returns
-------
Loading