Beispiel #1
0
def main(path, config, options):
    h5 = options.h5
    odor = options.odor
    
    try:
        generate_empty_data_directory.main(path, config)
    except:
        'Could not make empty data directory -- probably exists already!'
        return
        
    h5_path = os.path.join(path, config.h5_path)
    shutil.move(h5, h5_path)
    
    if odor is not None:
        odor_path = os.path.join(path, config.odor_control_path)
        shutil.move(odor, odor_path)

    if config.h5_files is not None:
        save_h5_to_dataset.main(path, config)

    prep_dataset.main(path, config)
    make_plots.main(path, config)
def main(path, config, options):
    h5 = options.h5
    
    # make file structure
    try:
        generate_empty_data_directory.main(path, config)
    except:
        'Could not make empty data directory -- probably exists already!'
        return
        
    # move h5 file
    h5_path = os.path.join(path, config.h5_path)
    shutil.move(h5, h5_path)
    
    # save_h5_to_dataset.py: do raw dataset analysis
    if config.h5_files is not None:
        save_h5_to_dataset.main(path, config)

    # prep_dataset.py: load raw dataset, cull data, apply other functions
    prep_dataset.main(path, config)
    
    # make_plots.py: make all the plots you want
    make_plots.main(path, config)