Closed neukym closed 6 months ago
Four of the invokers have the following boilerplate code - can we move this text to a single function:
if config['data_location'] == "local": data_root_dir = str(Path(Path(__file__).parent.parent, "kymata-toolbox-data", "emeg_study_data")) + "/" elif config['data_location'] == "cbu": data_root_dir = '/imaging/projects/cbu/kymata/data/' elif config['data_location'] == "cbu-local": data_root_dir = '//cbsu/data/imaging/projects/cbu/kymata/data/' else: raise Exception("The 'data_location' parameter in the config file must be either 'cbu' or 'local' or 'cbu-local'.")
Four of the invokers have the following boilerplate code - can we move this text to a single function: