Skip to content

Commit

Permalink
removed inquality that was causing deprication warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Blumberg committed Jan 11, 2019
1 parent 3cbb28e commit 4ca8cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sharppy/viz/analogues.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def drawSARS(self, qp, **kwargs):

## if there are no matches, leave the function to prevent crashing
pen = QtGui.QPen(self.fg_color, 1, QtCore.Qt.SolidLine)
if self.matches[0] == []:
if self.matches[0].size == 0:
pen.setColor(self.fg_color)
qp.setPen(pen)
qp.setFont(self.match_font)
Expand Down

0 comments on commit 4ca8cb0

Please sign in to comment.