Location heatmap plots

Create heatmaps representing the locations of animal body-part. Uses multiprocessing. Example expected output

[3]:
from simba.plotting.heat_mapper_location_mp import HeatMapperLocationMultiprocess
[4]:
# DEFINITIONS

CONFIG_PATH = '/Users/simon/Desktop/envs/troubleshooting/locomotion/project_folder/project_config.ini'
FRAME_SETTING = False
VIDEO_SETTING = True
FINAL_FRAME_SETTING = True
BODY_PART = 'Nose'
CORES = 5
STYLE_ATTRIBUTES = {'palette': 'jet',
                    'shading': 'gouraud',
                    'bin_size': 50,
                    'max_scale': 'auto'}
DATA_FILES = ['/Users/simon/Desktop/envs/troubleshooting/locomotion/project_folder/csv/outlier_corrected_movement_location/PD1406_2022-05-24_RVDG_GCaMP8s-Gi_Video_Day_22_Baseline.csv']
[6]:
plotter = HeatMapperLocationMultiprocess(config_path=CONFIG_PATH,
                                         style_attr = STYLE_ATTRIBUTES,
                                         final_img_setting=FINAL_FRAME_SETTING,
                                         video_setting=VIDEO_SETTING,
                                         frame_setting=FRAME_SETTING,
                                         bodypart=BODY_PART,
                                         core_cnt=CORES,
                                         files_found=DATA_FILES)
plotter.run()
Processing 1 video(s)...
SIMBA COMPLETE: Final location heatmap image saved at at /Users/simon/Desktop/envs/troubleshooting/locomotion/project_folder/frames/output/heatmaps_locations/PD1406_2022-05-24_RVDG_GCaMP8s-Gi_Video_Day_22_Baseline_final_frm.png     complete
Image 8943/44713, Video 1/1...
Image 17886/44713, Video 1/1...
Image 26829/44713, Video 1/1...
Image 35772/44713, Video 1/1...
Image 44715/44713, Video 1/1...
Joining PD1406_2022-05-24_RVDG_GCaMP8s-Gi_Video_Day_22_Baseline multiprocessed heatmap location video...
SIMBA COMPLETE: Video concatenated (elapsed time: 99.711s)      complete
Heatmap video PD1406_2022-05-24_RVDG_GCaMP8s-Gi_Video_Day_22_Baseline complete (elapsed time: 1722.0803s) ...
SIMBA COMPLETE: Heatmap location videos visualizations for 1 videos created in project_folder/frames/output/heatmaps_locations directory (elapsed time: 1722.0986s)     complete
[ ]: