Skip to content
Snippets Groups Projects
Commit eda8376a authored by Sören Henning's avatar Sören Henning
Browse files

Merge branch 'bugfix-to-int-cast-in-slo-gneric' into 'master'

Fix casting to int in SLO-Generic

See merge request !279
parents ed834371 5b5a179e
No related branches found
No related tags found
1 merge request!279Fix casting to int in SLO-Generic
Pipeline #8551 failed
......@@ -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.
Please register or to comment