From c102d4145c81ef51467b4069650ab3b195ea7503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Boisselier?= Date: Thu, 26 Oct 2023 18:52:34 +0200 Subject: [PATCH] fixed MHI LUT to give values on all the range --- K-ShakeTune/scripts/graph_belts.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/K-ShakeTune/scripts/graph_belts.py b/K-ShakeTune/scripts/graph_belts.py index 396e063..2b8bdd0 100755 --- a/K-ShakeTune/scripts/graph_belts.py +++ b/K-ShakeTune/scripts/graph_belts.py @@ -330,15 +330,15 @@ def compute_mhi(combined_data, similarity_coefficient, num_unpaired_peaks): def mhi_lut(mhi): if 0 <= mhi <= 30: return "Excellent mechanical health" - elif 31 <= mhi <= 45: + elif 30 < mhi <= 45: return "Good mechanical health" - elif 46 <= mhi <= 55: + elif 45 < mhi <= 55: return "Acceptable mechanical health" - elif 56 <= mhi <= 70: + elif 55 < mhi <= 70: return "Potential signs of a mechanical issue" - elif 71 <= mhi <= 85: + elif 70 < mhi <= 85: return "Likely a mechanical issue" - elif 86 <= mhi <= 100: + elif 85 < mhi <= 100: return "Mechanical issue detected"