def do_submissions(userid, password, subject_list):

    # read the configuration file
    config_file_name = file_utils.get_config_file_name(__file__)
    print("Reading configuration from file: " + config_file_name)
    config = my_configparser.MyConfigParser()
    config.read(config_file_name)

    # process the subjects in the list
    batch_submitter = BatchSubmitter()
    batch_submitter.submit_jobs(userid, password, subject_list, config)
Ejemplo n.º 2
0
            # submit jobs
            submitter.submit_jobs(processing_stage)


if __name__ == '__main__':
    logging.config.fileConfig(
        file_utils.get_logging_config_file_name(__file__),
        disable_existing_loggers=False)

    # get ConnectomeDB credentials
    userid = input("Connectome DB Username: "******"Connectome DB Password: "******"Reading configuration from file: " + config_file_name)
    config = my_configparser.MyConfigParser()
    config.read(config_file_name)

    # get list of subjects to process
    subject_file_name = 'subjectfiles' + os.sep + file_utils.get_subjects_file_name(
        __file__)
    module_logger.info("Retrieving subject list from: " + subject_file_name)
    subject_list = ccf_subject.read_subject_info_list(subject_file_name,
                                                      separator=':')

    # process the subjects in the list
    batch_submitter = BatchSubmitter('3T')
    batch_submitter.submit_jobs(userid, password, subject_list, config)