caching now per instance, not at def time

This commit is contained in:
Max Zwiessele 2014-03-21 16:57:49 +00:00
parent 044e714ad4
commit 0b5f6ea7c6
4 changed files with 38 additions and 20 deletions

View file

@ -126,7 +126,7 @@ def _slice_wrapper(kern, operation, diag=False, derivative=False, psi_stat=False
kern._sliced_X -= 1
return ret
x_slice_wrapper._operation = operation
x_slice_wrapper.__name__ = ("slicer("+operation.__name__
x_slice_wrapper.__name__ = ("slicer("+str(operation)
+(","+str(bool(diag)) if diag else'')
+(','+str(bool(derivative)) if derivative else '')
+')')