diff --git a/hysop/operator/spatial_filtering.py b/hysop/operator/spatial_filtering.py index c6470e07dda0edb46b1385eba2293b8651d4aead..f6c87b542c99a9417e9400992eae58c52c935d31 100644 --- a/hysop/operator/spatial_filtering.py +++ b/hysop/operator/spatial_filtering.py @@ -89,7 +89,7 @@ class LowpassFilterFrontend(MultiComputationalGraphNodeFrontend): check_instance(input_topo, CartesianTopologyDescriptors) check_instance(output_topo, CartesianTopologyDescriptors) check_instance(base_kwds, dict, keys=str, allow_none=True) - #assert (input_topo != output_topo), "Same topology for input and output." + assert (input_topo != output_topo), "Same topology for input and output." super(LowpassFilterFrontend, self).__init__(input_field=input_field, input_topo=input_topo, output_field=output_field, output_topo=output_topo, @@ -174,9 +174,8 @@ class LowpassFilter(ComputationalGraphNodeGenerator): kwds = self._kwds.copy() # if source topology is destination topology there is nothing to be done - # TODO - #if (ttopo == stopo): - #continue + if (ttopo == stopo): + continue # else we build a lowpass filter operator node = LowpassFilterFrontend(input_variable=(ifield,stopo),