Skip to content
Snippets Groups Projects
Commit 1349ad0d authored by Peter Lünenschloß's avatar Peter Lünenschloß
Browse files

removed debug artifact

parent 25184403
No related branches found
No related tags found
1 merge request!711removed debug artifact
......@@ -331,7 +331,7 @@ def interpolateNANs(data, method, order=2, gap_limit=2, extrapolate=None):
# helper variable for checking numerical value of gap limit, if its a numeric value (to avoid comparison to str)
gap_check = np.nan if isinstance(gap_limit, str) else gap_limit
data = pd.Series(data, copy=True)
limit_area = "inside" if not extrapolate else "outside"
limit_area = None if extrapolate else "inside"
if gap_check is None:
# if there is actually no limit set to the gaps to-be interpolated, generate a dummy mask for the gaps
gap_mask = pd.Series(True, index=data.index, name=data.name)
......
......@@ -47,10 +47,7 @@ F = False
)
def test_exceedConsecutiveNanLimit(arr, maxc, expected):
result = tsops._exceedConsecutiveNanLimit(arr, maxc)
try:
assert result is expected
except AssertionError:
print("stop")
assert result is expected
def dtSeries(data, freq="1d"):
......@@ -242,7 +239,7 @@ def test_rateOfChange(data, expected):
4,
"both",
[np.nan, 0, np.nan, np.nan, np.nan, 4, np.nan],
[np.nan, 0, 1, 2, 3, 4, np.nan],
[0, 0, 1, 2, 3, 4, 4],
),
(
None,
......@@ -256,7 +253,4 @@ def test_interpolatNANs(limit, extrapolate, data, expected):
got = tsops.interpolateNANs(
pd.Series(data), gap_limit=limit, method="linear", extrapolate=extrapolate
)
try:
assert got.equals(pd.Series(expected, dtype=float))
except AssertionError:
print("stop")
assert got.equals(pd.Series(expected, dtype=float))
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