Beispiel #1
0
 def __call_internal__(self, *args, **kwargs):
     """ Override the call to be able to choose whether to apply an
     ExtractVectorNorm filter.
     """
     self.source = self._source_function(*args, **kwargs)
     kwargs.pop('name', None)
     self.store_kwargs(kwargs)
     # Copy the pipeline so as not to modify it for the next call
     self.pipeline = self._pipeline[:]
     if tools._has_scalar_data(self.source):
         self.pipeline.pop(0)
     return self.build_pipeline()
Beispiel #2
0
 def __call_internal__(self, *args, **kwargs):
     """ Override the call to be able to choose whether to apply an
     ExtractVectorNorm filter.
     """
     self.source = self._source_function(*args, **kwargs)
     kwargs.pop('name', None)
     self.store_kwargs(kwargs)
     # Copy the pipeline so as not to modify it for the next call
     self.pipeline = self._pipeline[:]
     if tools._has_scalar_data(self.source):
         self.pipeline.pop(0)
     return self.build_pipeline()