mast/tools/processor.py
def __calculate_total_time(self, segment: list, namespace: str) -> datetime.timedelta:
        """
        Purpose of this method is to calculate the time of the give activity.
        :param segment: List of track points.
        :param namespace: Namespace to be find in elements.
        :return: Total time spent on activity.
        """
        segment_time = [c_activity.find(namespace + self.__TIME_ELM) for c_activity in segment]
        return parser.parse(segment_time[-1].text) - parser.parse(segment_time[0].text)

        Purpose of this method is to calculate the time of the give activity.
        :param segment: List of track points.
        :param namespace: Namespace to be find in elements.
        :return: Total time spent on activity.
        
Purpose of this method is to calculate the time of the give activity.
Purpose of this method is to calculate the time of the give activity .
def __calculate_total_time(self, segment: list, namespace: str) -> datetime.timedelta:
        segment_time = [c_activity.find(namespace + self.__TIME_ELM) for c_activity in segment]
        return parser.parse(segment_time[-1].text) - parser.parse(segment_time[0].text)
def __calculate_total_time ( self , segment : list , namespace : str ) -> datetime . timedelta : segment_time = [ c_activity . find ( namespace + self . __TIME_ELM ) for c_activity in segment ] return parser . parse ( segment_time [ - 1 ] . text ) - parser . parse ( segment_time [ 0 ] . text )
Purpose of this method is to calculate the time of the give activity.
Purpose of this method is to calculate the time of the give activity .
"""
        Purpose of this method is to calculate the time of the give activity.
        :param segment: List of track points.
        :param namespace: Namespace to be find in elements.
        :return: Total time spent on activity.
        """
Total time spent on activity.
Total time spent on activity .
self
segment
list
List of track points.
List of track points .
namespace
str
Namespace to be find in elements.
Namespace to be find in elements .