Skip to content

Commit

Permalink
fixed MHI LUT to give values on all the range
Browse files Browse the repository at this point in the history
  • Loading branch information
Félix Boisselier committed Oct 26, 2023
1 parent c39f0fe commit c102d41
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions K-ShakeTune/scripts/graph_belts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down

0 comments on commit c102d41

Please sign in to comment.