parameters: (self, activity_file_path, activity_args_file_path)
return_statement: return activity_timeline_list
docstring: Load activity data from file
docstring_summary: Load activity data from file
docstring_tokens: Load activity data from file
function: def _load_activity_data(self, activity_file_path, activity_args_file_path):
          """Load activity data from file"""
          activity_timeline_list = []
          try:
              args_dict = {}
              with open(activity_args_file_path, 'r') as args_file:
                  csv_reader = csv.reader(args_file)
                  keys_list = next(csv_reader)
                  # keys_list [name, type, op_full_name, stream_id, block_dim, grid_dim, ...]
                  self._activity_keys_list = keys_list[1:3] + keys_list[4:6]
                  for info in csv_reader:
                      args_dict[info[0]] = info[1:3] + info[4:6]
              with open(activity_file_path, 'r') as f_obj:
                  for line in f_obj:
                      line_list = line.strip('\n').split(';')
                      # concat activity args info.
                      line_list += args_dict[line_list[0]]
                      activity_timeline_list.append(line_list)
          except (IOError, OSError) as err:
              logger.critical('Error occurred when load activity timeline data intermediate file: %s', err)
              raise ProfilerIOException()
  
          return activity_timeline_list
function_tokens: def _load_activity_data ( self , activity_file_path , activity_args_file_path ) : activity_timeline_list = [ ] try : args_dict = { } with open ( activity_args_file_path , 'r' ) as args_file : csv_reader = csv . reader ( args_file ) keys_list = next ( csv_reader ) # keys_list [name, type, op_full_name, stream_id, block_dim, grid_dim, ...] self . _activity_keys_list = keys_list [ 1 : 3 ] + keys_list [ 4 : 6 ] for info in csv_reader : args_dict [ info [ 0 ] ] = info [ 1 : 3 ] + info [ 4 : 6 ] with open ( activity_file_path , 'r' ) as f_obj : for line in f_obj : line_list = line . strip ( '\n' ) . split ( ';' ) # concat activity args info. line_list += args_dict [ line_list [ 0 ] ] activity_timeline_list . append ( line_list ) except ( IOError , OSError ) as err : logger . critical ( 'Error occurred when load activity timeline data intermediate file: %s' , err ) raise ProfilerIOException ( ) return activity_timeline_list