ECOdyagnostics/operations.py
def _data_skip(self, da, skip):
        """
        Returns a cut version of data vector da by skipping physical dimensions


        """
        if type(skip) is int:
            da = da[:skip] + da[skip + 1:]
        elif type(skip) is list:
            k = 0
            for ind in skip:
                da = da[:ind - k] + da[ind + 1 - k:]
                k += 1
        else:
            raise Exception("""Input for "skip" not understood. Give integer or list.""")
        return da

        Returns a cut version of data vector da by skipping physical dimensions


        
Returns a cut version of data vector da by skipping physical dimensions
Returns a cut version of data vector da by skipping physical dimensions
def _data_skip(self, da, skip):
        if type(skip) is int:
            da = da[:skip] + da[skip + 1:]
        elif type(skip) is list:
            k = 0
            for ind in skip:
                da = da[:ind - k] + da[ind + 1 - k:]
                k += 1
        else:
            raise Exception("""Input for "skip" not understood. Give integer or list.""")
        return da
def _data_skip ( self , da , skip ) : if type ( skip ) is int : da = da [ : skip ] + da [ skip + 1 : ] elif type ( skip ) is list : k = 0 for ind in skip : da = da [ : ind - k ] + da [ ind + 1 - k : ] k += 1 else : raise Exception ( """Input for "skip" not understood. Give integer or list.""" ) return da
Returns a cut version of data vector da by skipping physical dimensions
Returns a cut version of data vector da by skipping physical dimensions
"""
        Returns a cut version of data vector da by skipping physical dimensions


        """
self
da
skip