elaird/supy — pull request #116 by betchart (2012-07-17 16:36:21+00:00)
Title: Edges rebinned

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.