added a __call__ method to BatchTransform to make it useable as a decorator.

This commit is contained in:
fawce
2012-10-19 11:20:00 -04:00
committed by Eddie Hebert
parent e752dfacc9
commit 943a56322e
+3
View File
@@ -454,6 +454,9 @@ class BatchTransform(EventWindow):
return self.cached
def __call__(self, f):
self.compute_transform_value = f
return self.handle_data
def batch_transform(func):
"""Decorator function to use instead of inheriting from BatchTransform.