Skip to content
Snippets Groups Projects

Replace inner kernel for pickling

Merged Hao Gao requested to merge replace-inner-kernel into master
All threads resolved!
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
+ 3
0
@@ -797,6 +797,9 @@ class AxisTargetDerivative(DerivativeBase):
@@ -797,6 +797,9 @@ class AxisTargetDerivative(DerivativeBase):
expr = self.inner_kernel.postprocess_at_target(expr, bvec)
expr = self.inner_kernel.postprocess_at_target(expr, bvec)
return expr.diff(bvec[self.axis])
return expr.diff(bvec[self.axis])
 
def replace_inner_kernel(self, new_inner_kernel):
 
return type(self)(self.axis, new_inner_kernel)
 
mapper_method = "map_axis_target_derivative"
mapper_method = "map_axis_target_derivative"
Loading