algo/IVTFilter.py
def filterValues(self, values:DataFrame) -> DataFrame:
        """Filter out results based on condition.

        :param values: data to filter
        :return: filtered data
        """
        dur = []
        minMotion = self.getParameter('min_motion')
        values.apply(lambda x: dur.append(x['max'] - x['min']), axis=1)
        values['dur'] = dur
        res = values[values['dur'] >= minMotion]
        return res
Filter out results based on condition.

        :param values: data to filter
        :return: filtered data
        
Filter out results based on condition.
Filter out results based on condition .
def filterValues(self, values:DataFrame) -> DataFrame:
        dur = []
        minMotion = self.getParameter('min_motion')
        values.apply(lambda x: dur.append(x['max'] - x['min']), axis=1)
        values['dur'] = dur
        res = values[values['dur'] >= minMotion]
        return res
def filterValues ( self , values : DataFrame ) -> DataFrame : dur = [ ] minMotion = self . getParameter ( 'min_motion' ) values . apply ( lambda x : dur . append ( x [ 'max' ] - x [ 'min' ] ) , axis = 1 ) values [ 'dur' ] = dur res = values [ values [ 'dur' ] >= minMotion ] return res
Filter out results based on condition.
Filter out results based on condition .
"""Filter out results based on condition.

        :param values: data to filter
        :return: filtered data
        """
None
self
values
DataFrame
data to filter
data to filter