From 9bd8e7dca4d2211338b389d7db1a0d08e085d2ae Mon Sep 17 00:00:00 2001 From: AndreiSavici Date: Fri, 19 Sep 2014 17:55:44 -0400 Subject: [PATCH] Update detector_plot.py the previous version does not work anymore on RHEL6 --- gui/detector_plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/detector_plot.py b/gui/detector_plot.py index 656d95f..e80dfad 100644 --- a/gui/detector_plot.py +++ b/gui/detector_plot.py @@ -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)