~oubiwann/evolver/trunk

« back to all changes in this revision

Viewing changes to sandbox/oubiwann/image.py

  • Committer: Duncan McGreggor
  • Date: 2008-12-29 21:52:10 UTC
  • Revision ID: duncan@canonical.com-20081229215210-3t0i8jmohkvsd4kb
* Removed debug code from sum_differences function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
    >>> sum_differences(white, noise) > sum_differences(grey, noise)
89
89
    True
90
90
    """
91
 
    try:
92
 
        return sum(map(lambda a, b: abs(a-b), chain(*list1), chain(*list2)))
93
 
    except:
94
 
        import pdb;pdb.set_trace()
 
91
    return sum(map(lambda a, b: abs(a-b), chain(*list1), chain(*list2)))
95
92
 
96
93
 
97
94
def bin(a):