Skip to content
Snippets Groups Projects
Commit 5b5a179e authored by Benedikt Wetzel's avatar Benedikt Wetzel Committed by Sören Henning
Browse files

enhance test and fix to int casting for special cases

parent ed834371
No related branches found
No related tags found
1 merge request!279Fix casting to int in SLO-Generic
Pipeline #8548 passed
......@@ -37,7 +37,7 @@ def aggr_query(values: dict, warmup: int, aggr_func):
df = pd.DataFrame.from_dict(values)
df.columns = ['timestamp', 'value']
filtered = df[df['timestamp'] >= (df['timestamp'][0] + warmup)]
filtered['value'] = filtered['value'].astype(int)
filtered['value'] = filtered['value'].astype(float).astype(int)
return filtered['value'].aggregate(aggr_func)
def check_result(result, operator: str, threshold):
......
......@@ -260,7 +260,7 @@
],
[
1.634624989695E9,
"1854284"
"3970.0000000000005"
]
]
}
......
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