(self: 'SampledFieldType', operator: Callable)
return self.with_values(values).with_extrapolation(extrapolation_)
Perform an operation on the data of this field.

        Args:
          operator: function that accepts tensors and extrapolations and returns objects of the same type and dimensions

        Returns:
          Field of same type
Perform an operation on the data of this field.
Perform an operation on the data of this field .
def _op1(self: 'SampledFieldType', operator: Callable) -> 'SampledFieldType':
        """
        Perform an operation on the data of this field.

        Args:
          operator: function that accepts tensors and extrapolations and returns objects of the same type and dimensions

        Returns:
          Field of same type
        """
        values = operator(self.values)
        extrapolation_ = operator(self._extrapolation)
        return self.with_values(values).with_extrapolation(extrapolation_)
def _op1 ( self : 'SampledFieldType' , operator : Callable ) -> 'SampledFieldType' : values = operator ( self . values ) extrapolation_ = operator ( self . _extrapolation ) return self . with_values ( values ) . with_extrapolation ( extrapolation_ )