Mark Moll  committed f50b49e

replace inf values with zeros to avoid matplotlib warnings

  • Participants
  • Parent commits ca2cc47

Comments (0)

Files changed (1)

File scripts/

         attributes = [ t[0] for t in cur.description]
         if attribute in attributes:
             cur.execute('SELECT `%s` FROM `%s` WHERE `%s` IS NOT NULL' % (attribute, planner, attribute))
-            measurement = [ t[0] for t in cur.fetchall() ]
+            measurement = [ 0 if np.isinf(t[0]) else t[0] for t in cur.fetchall() ]
             cur.execute('SELECT count(*) FROM `%s` WHERE `%s` IS NULL' % (planner, attribute))
             cur.execute('SELECT DISTINCT `%s` FROM `%s`' % (attribute, planner))