Added default name to hooke.util.peak.mask_to_peaks
authorW. Trevor King <wking@drexel.edu>
Wed, 19 May 2010 08:39:04 +0000 (04:39 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 19 May 2010 08:39:04 +0000 (04:39 -0400)
hooke/util/peak.py

index f980267390d1d5211d5f63b4f69188bd368a6fb1..0debbd0970824a58ba4dde12ea9b1ed03665c529 100644 (file)
@@ -71,7 +71,7 @@ class Peak (object):
         """
         return self.index + len(self.values)
 
-def mask_to_peaks(data, mask, name):
+def mask_to_peaks(data, mask, name='peak'):
     """Convert a mask array to a list of :class:`Peak`\s.
 
     Parameters