Included diverging and converging status calculation

This commit is contained in:
Jamie Cash
2021-05-25 11:16:41 +01:00
parent 443ad822ad
commit 1c59945745
3 changed files with 52 additions and 28 deletions
+4 -2
View File
@@ -510,8 +510,10 @@ class DataTable(wx.grid.GridTableBase):
# Is status one of interest
value = self.GetValue(row, col)
if value != "":
if value in [cor.STATUS_BELOW_DIVERGENCE_THRESHOLD]:
attr.SetBackgroundColour(wx.YELLOW)
if value in [cor.STATUS_DIVERGING]:
attr.SetBackgroundColour(wx.RED)
elif value in [cor.STATUS_CONVERGING]:
attr.SetBackgroundColour(wx.GREEN)
else:
attr.SetBackgroundColour(wx.WHITE)