#8135 NORM 9.1.0: More extensive use of Numpy

Zarro Boogs per Child bugtracker at laptop.org
Sun Dec 28 11:23:19 EST 2008


#8135: More extensive use of Numpy
----------------------------------------+-----------------------------------
           Reporter:  seberg            |       Owner:  arjs                   
               Type:  enhancement       |      Status:  new                    
           Priority:  normal            |   Milestone:  9.1.0                  
          Component:  measure-activity  |     Version:  not specified          
         Resolution:                    |    Keywords:  performance cjbfor9.1.0
        Next_action:  code              |    Verified:  0                      
Deployment_affected:                    |   Blockedby:                         
           Blocking:                    |  
----------------------------------------+-----------------------------------
Changes (by seberg):

 * cc: benzea (added)


Comment:

 I have done some work on the things mentioned above and my brother did
 some other optimizations. This patch does change the API of drawwaveform a
 bit, so that it probably broke the sensor toolbar, which will need similar
 changes.

 The changes are:
     * Usage of numpy everywhere
     * Better drawing of background (X server fills it)
     * Making sure not to give floats to draw_line which slows down a lot
 due to loads of warnings
     * Improved API for drawwaveform (We ask it to do a certain division
 size)
     * Don't close sound device which took quite long, but instead sample
 down in software.
     * Breaking sensor toolbar (needs similar changes)
     * Basic TRIGGERING (based on zero-crossings) improves time base
 experience.
     * Frequency display more useful (more data points, better scaling)
     * The set_graph_params is outcommented as its values are ignored right
 now.

 There is some more code cleanup required though admittingly I guess. Just
 try it, it feels nice :)

-- 
Ticket URL: <http://dev.laptop.org/ticket/8135#comment:3>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list