Skip to content

Commit

Permalink
ref: avert float warnings during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Nov 16, 2020
1 parent 182f9b9 commit 12eba53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyjibe/fd/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def curve_list_update(self, item=None):
it = self.list_curves.topLevelItem(ii)
it.setText(2, "{:.1f}".format(rating))
cm = colormap.cm_rating
color = np.array(cm(rating/10))*255
color = np.array(np.array(cm(rating/10))*255, dtype=int)
it.setBackground(2, QtGui.QColor(*color))

@staticmethod
Expand Down

0 comments on commit 12eba53

Please sign in to comment.