Example #1
0
def main(path, config, reprep=False):

    if reprep:
        culled_dataset = prep_dataset.main(path, config)
        dataset = culled_dataset
    else:
        culled_dataset_filename = os.path.join(path, config.culled_datasets_path, config.culled_dataset_name) 
        culled_dataset = fad.load(culled_dataset_filename)
        dataset = culled_dataset
    
    if 0:
        raw_dataset_name = os.path.join(path, config.raw_datasets_path, config.raw_dataset_name)
        raw_dataset = fad.load(raw_dataset_name)
        prep_dataset.prep_data(raw_dataset, path, config)
        dataset = raw_dataset    
    
    
    figure_path = os.path.join(path, config.figure_path)
    
    plot_heatmaps.pdf_book(config, dataset, save_figure_path=os.path.join(figure_path, 'heatmaps/') )
    #plot_spagetti.main(config, dataset, save_figure_path=os.path.join(figure_path, 'spagetti/') )
    #plot_activity_histograms.main(dataset, save_figure_path=os.path.join(figure_path, 'activity/') )
    #plot_distance_histograms.plot_distance_histogram(config, dataset, save_figure_path='')
    plot_landing_histogram.plot_landing_histogram(config, dataset)
    sachead.main(config, dataset)
def main(path, config):

    if 0:
        culled_dataset = prep_dataset.main(path, config)
        dataset = culled_dataset
        
    if 1:
        raw_dataset_name = os.path.join(path, config.raw_datasets_path, config.raw_dataset_name)
        raw_dataset = fad.load(raw_dataset_name)
        prep_dataset.prep_data(raw_dataset, path, config)
        dataset = raw_dataset    
    
    
    figure_path = os.path.join(path, config.figure_path)
    
    plot_heatmaps.main(dataset, save_figure_path=os.path.join(figure_path, 'heatmaps/') )
    plot_spagetti.main(dataset, save_figure_path=os.path.join(figure_path, 'spagetti/') )
    plot_activity_histograms.main(dataset, save_figure_path=os.path.join(figure_path, 'activity/') )