elaird / supy

analyze events stored in TTrees in parallel
8 stars 7 forks source link

Edges rebinned #116

Closed betchart closed 12 years ago

betchart commented 12 years ago

Hi Ted,

Please merge these minor changes:

  1. step.disable() now takes a bool (default True) and returns itself.
  2. New function supy.utils.contract() is useful for saving space in moreNames. Try:

    import supy supy.utils.contract(sorted(['Burt','Betchart','Burton','Burton Andrew Betchart','Joe Camel','Joe Stalin'])) '{B{etchart,urt{,on{, Andrew Betchart}}},Joe {Camel,Stalin}}'

  3. utils.algos.edgesRebinned is generalized to the case where the pivot is not included in the edges.