ECOdyagnostics/operations.py
def _combine_metric(self, da, axes, skip=None):
        """
        Returns the product of metrics corresponding to the respective datavariable.

        :param da:  data variable or vector as xarray.Dataarray or List(xarray.Dataarray, ...)

        :return:    position of data varaible or vector
        """
        if type(skip) is list:
            pass
        elif skip is None:
            skip = list('_')
        else:
            skip = list(skip)

        metric = 1
        for i in range(len(axes)):
            if any(axes[i] == np.array(skip)):
                pass
            else:
                metric = metric * self.grid.get_metric(da, axes[i])

        return metric

        Returns the product of metrics corresponding to the respective datavariable.

        :param da:  data variable or vector as xarray.Dataarray or List(xarray.Dataarray, ...)

        :return:    position of data varaible or vector
        
Returns the product of metrics corresponding to the respective datavariable.
Returns the product of metrics corresponding to the respective datavariable .
def _combine_metric(self, da, axes, skip=None):
        if type(skip) is list:
            pass
        elif skip is None:
            skip = list('_')
        else:
            skip = list(skip)
        metric = 1
        for i in range(len(axes)):
            if any(axes[i] == np.array(skip)):
                pass
            else:
                metric = metric * self.grid.get_metric(da, axes[i])
        return metric
def _combine_metric ( self , da , axes , skip = None ) : if type ( skip ) is list : pass elif skip is None : skip = list ( '_' ) else : skip = list ( skip ) metric = 1 for i in range ( len ( axes ) ) : if any ( axes [ i ] == np . array ( skip ) ) : pass else : metric = metric * self . grid . get_metric ( da , axes [ i ] ) return metric
Returns the product of metrics corresponding to the respective datavariable.
Returns the product of metrics corresponding to the respective datavariable .
"""
        Returns the product of metrics corresponding to the respective datavariable.

        :param da:  data variable or vector as xarray.Dataarray or List(xarray.Dataarray, ...)

        :return:    position of data varaible or vector
        """
position of data varaible or vector
position of data varaible or vector
self
da
data variable or vector as xarray.Dataarray or List(xarray.Dataarray, ...)
data variable or vector as xarray . Dataarray or List ( xarray . Dataarray ... )
axes
skip