Skip to content

Commit

Permalink
Update detector_plot.py
Browse files Browse the repository at this point in the history
the previous version does not work anymore on RHEL6
  • Loading branch information
AndreiSavici committed Sep 19, 2014
1 parent 6d001f4 commit 9bd8e7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/detector_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def detectorPlotPaint(self, event):
dc.DrawBitmap(bmp, self.xoffset, self.yoffset)

if not self.meas is None:
if hasattr([], '__len__'):
if hasattr(self.meas, '__len__'):
# LIST of measurements. Draw each (no crosshairs)
for meas in self.meas:
self.plot_measurement(meas, dc, draw_crosshairs=False)
Expand Down

0 comments on commit 9bd8e7d

Please sign in to comment.