(self, last_session=False, file_path=None, colour_override=None)
Render track image.
Render track image.
Render track image .
def tracks(self, last_session=False, file_path=None, colour_override=None):
        """Render track image."""
        track_data = self.data.get_tracks()
        if track_data is None:
            Message(LANGUAGE.strings['Generation']['NoData'])
            return None
            
        top_resolution, (min_value, max_value), tracks = track_data
        
        output_resolution, upscale_resolution = calculate_resolution(tracks.keys(), top_resolution)
        upscaled_arrays = upscale_arrays_to_resolution(tracks, upscale_resolution)

        colour_range = self._get_colour_range(min_value, max_value, 'GenerateTracks', custom_map=colour_override)
        
        image_output = arrays_to_colour(colour_range, upscaled_arrays)
        image_output = image_output.resize(output_resolution, Image.ANTIALIAS)

        if file_path is None:
            file_path = self.name.generate('Tracks', reload=True)
            
        if self.save:
            save_image_to_folder(image_output, file_path)
def tracks ( self , last_session = False , file_path = None , colour_override = None ) : track_data = self . data . get_tracks ( ) if track_data is None : Message ( LANGUAGE . strings [ 'Generation' ] [ 'NoData' ] ) return None top_resolution , ( min_value , max_value ) , tracks = track_data output_resolution , upscale_resolution = calculate_resolution ( tracks . keys ( ) , top_resolution ) upscaled_arrays = upscale_arrays_to_resolution ( tracks , upscale_resolution ) colour_range = self . _get_colour_range ( min_value , max_value , 'GenerateTracks' , custom_map = colour_override ) image_output = arrays_to_colour ( colour_range , upscaled_arrays ) image_output = image_output . resize ( output_resolution , Image . ANTIALIAS ) if file_path is None : file_path = self . name . generate ( 'Tracks' , reload = True ) if self . save : save_image_to_folder ( image_output , file_path )