original_docstring: Concatenates an ordered list of compatible HK blocks into a single
      frame.  Each block should be a valid G3TimesampleMap with the same
      keys.
  
      Returns a single G3TimesampleMap with all fields concatenated.
  
      
docstring: Concatenates an ordered list of compatible HK blocks into a single
  frame.  Each block should be a valid G3TimesampleMap with the same
  keys.
  
  Returns a single G3TimesampleMap with all fields concatenated.
docstring_tokens: Concatenates an ordered list of compatible HK blocks into a single frame . Each block should be a valid G3TimesampleMap with the same keys . Returns a single G3TimesampleMap with all fields concatenated .
code: def _concat_hk_stream(blocks_in):
      """Concatenates an ordered list of compatible HK blocks into a single
      frame.  Each block should be a valid G3TimesampleMap with the same
      keys.
  
      Returns a single G3TimesampleMap with all fields concatenated.
  
      """
      blk = core.G3TimesampleMap()
      blk.times = core.G3VectorTime(blocks_in[0].times)
      fields = list(blocks_in[0].keys())
      for f in fields:
          f_short = f.split('.')[-1]
          blk[f] = blocks_in[0][f_short]
      for b in blocks_in[1:]:
          blk.times.extend(b.times)
      for f in fields:
          f_short = f.split('.')[-1]
          for _type in _SCHEMA_V1_BLOCK_TYPES:
              if isinstance(blocks_in[0][f_short], _type):
                  break
          else:
              raise RuntimeError('Field "%s" is of unsupported type %s.' %
                                 (f_short, type(blocks_in[0][f_short])))
          for b in blocks_in[1:]:
              blk[f].extend(b[f_short])
      return blk
code_tokens: def _concat_hk_stream ( blocks_in ) : blk = core . G3TimesampleMap ( ) blk . times = core . G3VectorTime ( blocks_in [ 0 ] . times ) fields = list ( blocks_in [ 0 ] . keys ( ) ) for f in fields : f_short = f . split ( '.' ) [ - 1 ] blk [ f ] = blocks_in [ 0 ] [ f_short ] for b in blocks_in [ 1 : ] : blk . times . extend ( b . times ) for f in fields : f_short = f . split ( '.' ) [ - 1 ] for _type in _SCHEMA_V1_BLOCK_TYPES : if isinstance ( blocks_in [ 0 ] [ f_short ] , _type ) : break else : raise RuntimeError ( 'Field "%s" is of unsupported type %s.' % ( f_short , type ( blocks_in [ 0 ] [ f_short ] ) ) ) for b in blocks_in [ 1 : ] : blk [ f ] . extend ( b [ f_short ] ) return blk
short_docstring: Concatenates an ordered list of compatible HK blocks into a single
  frame.
short_docstring_tokens: Concatenates an ordered list of compatible HK blocks into a single frame .
comment: """Concatenates an ordered list of compatible HK blocks into a single
      frame.  Each block should be a valid G3TimesampleMap with the same
      keys.
  
      Returns a single G3TimesampleMap with all fields concatenated.
  
      """