# None # import of local modules import hcp.hcp7t.archive as hcp7t_archive import hcp.hcp7t.resting_state_stats.one_subject_completion_checker as one_subject_completion_checker import hcp.hcp7t.subject as hcp7t_subject import utils.file_utils as file_utils # authorship information __author__ = "Timothy B. Brown" __copyright__ = "Copyright 2016, The Human Connectome Project" __maintainer__ = "Timothy B. Brown" # configure logging and create module logger logging.config.fileConfig(file_utils.get_logging_config_file_name(__file__)) logger = logging.getLogger(file_utils.get_logger_name(__file__)) DNM = "---" # Does Not Matter NA = "N/A" # Not Available DATE_FORMAT = '%Y-%m-%d %H:%M:%S' def get_resource_name(scan_name): return scan_name + '_RSS' def _is_subject_complete(subject_results_dict): for scan, scan_results_dict in subject_results_dict.items(): if scan_results_dict['files_exist'] == 'FALSE': return False
# import of third party modules # import of local modules import hcp.hcp3t.archive as hcp3t_archive import hcp.hcp3t.bedpostx.one_subject_completion_checker as one_subject_completion_checker import hcp.hcp3t.subject as hcp3t_subject import utils.file_utils as file_utils # authorship information __author__ = "Timothy B. Brown" __copyright__ = "Copyright 2016, The Human Connectome Project" __maintainer__ = "Timothy B. Brown" # configure logging and create module logger logging.config.fileConfig(file_utils.get_logging_config_file_name(__file__)) logger = logging.getLogger(file_utils.get_logger_name(__file__)) # module constants DNM = "---" # Does Not Matter NA = "N/A" # Not Available DATE_FORMAT = '%Y-%m-%d %H:%M:%S' if __name__ == '__main__': # get list of subjects to check subject_file_name = file_utils.get_subjects_file_name(__file__) logger.info("Retrieving subject list from: " + subject_file_name) subject_list = hcp3t_subject.read_subject_info_list(subject_file_name, separator='\t') # open complete and incomplete files for writing
import utils.file_utils as file_utils import utils.my_configparser as my_configparser import utils.os_utils as os_utils # authorship information __author__ = "Timothy B. Brown" __copyright__ = "Copyright 2016, The Human Connectome Project" __maintainer__ = "Timothy B. Brown" # configure logging and create a module logger logging_config_file_name=file_utils.get_logging_config_file_name(__file__) print(os.path.basename(__file__)+":", "Getting logging configuration from:", logging_config_file_name) logging.config.fileConfig(logging_config_file_name) logger_name=file_utils.get_logger_name(__file__) print(os.path.basename(__file__)+":", "logger name:", logger_name) logger = logging.getLogger(logger_name) class BatchSubmitter(batch_submitter.BatchSubmitter): def __init__(self): super().__init__(hcp7t_archive.Hcp7T_Archive()) def submit_jobs(self, subject_list): # Read the configuration file config_file_name = file_utils.get_config_file_name(__file__) logger.info("Reading configuration from file: " + config_file_name)