(self, track_type, session=False)
return top_resolution, (int(min_value), int(max_value)), result
Return dictionary of tracks along with top resolution and range of values.
        
        TODO: Test sum of arrays vs length of arrays to get top resolution
Return dictionary of tracks along with top resolution and range of values.
        
        TODO: Test sum of arrays vs length of arrays to get top resolution
Return dictionary of tracks along with top resolution and range of values . TODO : Test sum of arrays vs length of arrays to get top resolution
def _get_track_map(self, track_type, session=False):
        """Return dictionary of tracks along with top resolution and range of values.
        
        TODO: Test sum of arrays vs length of arrays to get top resolution
        """
        start_time = self['Ticks']['Session'][track_type] if session else 0
        
        top_resolution = None
        max_records = 0
        min_value = float('inf')
        max_value = -float('inf')
        result = {}
        for resolution, maps in iteritems(self['Resolution']):
            array = numpy.max(maps[track_type] - start_time, 0)
            num_records = numpy.count(array)
            if num_records:
                result[resolution] = array
                
                #Find resolution with most data
                if num_records > max_records:
                    max_records = num_records
                    top_resolution = resolution
                
                #Find the highest and lowest recorded values
                min_value = min(min_value, numpy.min(array))
                max_value = max(max_value, numpy.max(array))
        
        if not result:
            return None
        
        return top_resolution, (int(min_value), int(max_value)), result
def _get_track_map ( self , track_type , session = False ) : start_time = self [ 'Ticks' ] [ 'Session' ] [ track_type ] if session else 0 top_resolution = None max_records = 0 min_value = float ( 'inf' ) max_value = - float ( 'inf' ) result = { } for resolution , maps in iteritems ( self [ 'Resolution' ] ) : array = numpy . max ( maps [ track_type ] - start_time , 0 ) num_records = numpy . count ( array ) if num_records : result [ resolution ] = array #Find resolution with most data if num_records > max_records : max_records = num_records top_resolution = resolution #Find the highest and lowest recorded values min_value = min ( min_value , numpy . min ( array ) ) max_value = max ( max_value , numpy . max ( array ) ) if not result : return None return top_resolution , ( int ( min_value ) , int ( max_value ) ) , result