From 86025a804c4977ad4539d86b1dcf947b6a3fe97b Mon Sep 17 00:00:00 2001 From: Lorenzo Volpi Date: Sat, 2 Dec 2023 02:06:53 +0100 Subject: [PATCH] estimators sorted --- qcdash/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcdash/app.py b/qcdash/app.py index f90ce24..b1fbf67 100644 --- a/qcdash/app.py +++ b/qcdash/app.py @@ -342,10 +342,11 @@ def update_estimators(href, dataset, metric, curr_estimators, root): old_estimators = json.loads(old_estimators) except JSONDecodeError: old_estimators = [] - valid_estimators = dr.data(metric=metric).columns.unique(0).to_numpy() + valid_estimators: np.ndarray = dr.data(metric=metric).columns.unique(0).to_numpy() new_estimators = valid_estimators[ np.isin(valid_estimators, old_estimators) ].tolist() + valid_estimators = CE.name.sort(valid_estimators.tolist()) return valid_estimators, new_estimators