code: def load_trajectory(name, format=None, skip=1):
      '''Read a trajectory from a file.
  
      .. seealso:: `chemlab.io.datafile`
  
      '''
      df = datafile(name, format=format)
  
      ret = {}
      t, coords = df.read('trajectory', skip=skip)
      boxes = df.read('boxes')
      ret['t'] = t
      ret['coords'] = coords
      ret['boxes'] = boxes
  
      return ref load_trajectory(name, format=None, skip=1):
      '''Read a trajectory from a file.
  
      .. seealso:: `chemlab.io.datafile`
  
      '''
      df = datafile(name, format=format)
  
      ret = {}
      t, coords = df.read('trajectory', skip=skip)
      boxes = df.read('boxes')
      ret['t'] = t
      ret['coords'] = coords
      ret['boxes'] = boxes
  
      return ret
docs: Read a trajectory from a file.
  
      .. seealso:: `chemlab.io.datafile`