Changeset 13448


Ignore:
Timestamp:
04/25/12 15:53:39 (13 years ago)
Author:
kraehenb
Message:
Newest performance test script files for the CalFits class, including a fast version using scipy.weave.
Location:
fact/tools/pyscripts/sandbox/kraehenb
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/pyscripts/sandbox/kraehenb/CalFitsPerformance.py

    r13435 r13448  
    6161#    print [(x,y) for x,y in zip(npthr.nonzero()[0],npthr.nonzero()[1])] #print the coordinates, range 0-1399,0-284
    6262   
     63    integrals = []
    6364    #Various versions to get the integral, all with approximately the same miserable speed (3 Hz), except for the last one (vectorized function) with ~4.3 Hz
    6465    #Missing: add deadtime after an integration, remove start & end of the array
     
    6869#    integrals = map((lambda index_a,index_b: np.sum(npcalevent[index_a,index_b+5:index_b+15])),npthr.nonzero()[0],npthr.nonzero()[1])
    6970    integrals = vecoffsum(npthr.nonzero()[0],npthr.nonzero()[1])
    70     print len(integrals)
    7171   
     72#    print len(integrals)
     73#    for i in range(10):
     74#        print i, npcalevent[0,i], integrals[i]
    7275#    print caltest.event_id, caltest.event_triggertype, caltest.event_caldata[10]
    7376#    pass
Note: See TracChangeset for help on using the changeset viewer.