From b6fd4df41dd341ec96e4f9db14a5fd739a03e160 Mon Sep 17 00:00:00 2001 From: appassionate Date: Mon, 11 Nov 2024 22:43:36 +0800 Subject: [PATCH] add abstraction converge --- fioer/flow/utils.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/fioer/flow/utils.py b/fioer/flow/utils.py index 7734765..e6fc1c8 100644 --- a/fioer/flow/utils.py +++ b/fioer/flow/utils.py @@ -1,10 +1,27 @@ from fioer.job import FioTask from typing import List + + +def calc_test_slope(data: List[float]) -> float: + """ + calculate the slope of the data + """ + + + + + + + + + def check_tasks_convergence(tasks: List[FioTask], threshold: float = 0.01) -> bool: """ check tests convergence: steady state or not """ #TODO - pass \ No newline at end of file + pass + +