Commits

Georg Brandl  committed 029fd70

Ignore errors in calculating.

  • Participants
  • Parent commits 102ff9d

Comments (0)

Files changed (1)

         return '<MIEZE measurement at %s, ycol %s>' % (self.varvalue, self.ycol)
 
     def add_point(self, x, point, graph, bkgrd, files):
-        y, dy = self._calc_point(point, graph, bkgrd)
+        try:
+            y, dy = self._calc_point(point, graph, bkgrd)
+        except Exception, err:
+            print "Error:", err
+            y, dy = 0, 0
         self.points.append((x, y, dy, files, point.get('group')))
 
     def _calc_point_sum(self, point, graph, bkgrd):