def _read_dicts(fn_list, keyatom):
 dict_list = []
 datalabel_list = []
 for fn in fn_list:
  peaklist = Peaklist(fn)
  dict = peaklist.residue_dict(keyatom)
  dict_list.append(dict)
  datalabel_list.append(peaklist.datalabels)
 return [dict_list, datalabel_list]

def _read_dicts ( fn_list , keyatom ) : dict_list = [ ] datalabel_list = [ ] for fn in fn_list : peaklist = Peaklist ( fn ) dict = peaklist . residue_dict ( keyatom ) dict_list . append ( dict ) datalabel_list . append ( peaklist . datalabels ) return [ dict_list , datalabel_list ]
read multiple files into a list of residue dictionaries .