def get_file_names_list(example_path, interactions_FilesList_filename, events_FilesList_filename, config_obj): # Reading through a file (for interactions/events) that contain file names which contain interactions and event details for a time step interactions_files_list = None events_files_list = None if config_obj.interactions_files_list == '': print('No Interaction files uploaded!') else: interactionFiles_obj = ReadFile.ReadFilesList( interactions_FilesList_filename) interactions_files_list = list( map(lambda x: osp.join(example_path, x), interactionFiles_obj.file_list)) if interactions_files_list == []: print('No Interactions inputted') if config_obj.events_files_list == '': print('No Event files uploaded!') else: eventFiles_obj = ReadFile.ReadFilesList(events_FilesList_filename) events_files_list = list( map(lambda x: osp.join(example_path, x), eventFiles_obj.file_list)) if events_files_list == []: print('No Events inputted') return interactions_files_list, events_files_list